Skip to content

Cyclic reference involving object WebIdentityTokenFileCredentialsProvider #18423

Open
@ricardoitv

Description

@ricardoitv

Compiler version

3.3.0 but I've also tried with 3.2.0, 3.1.0 and 3.0.0.
I couldn't reproduce it with Scala 2.13.11.

Minimized code

import software.amazon.awssdk.auth.credentials.WebIdentityTokenFileCredentialsProvider
import java.nio.file.Paths

object Main extends App {
  WebIdentityTokenFileCredentialsProvider.builder
    .roleArn("dummy")
    .roleSessionName("Dummy")
    .webIdentityTokenFile(Paths.get("."))
    .build
}

SBT dependency:

libraryDependencies ++= List("software.amazon.awssdk" % "sts" % "2.20.69")

Repo with all the code: https://github.com/ricardoitv/cyclic-reference-involving-object/tree/without-sbt-native-packager

Output

exception caught when loading trait Builder: Cyclic reference involving object WebIdentityTokenFileCredentialsProvider
exception caught when loading module class WebIdentityTokenFileCredentialsProvider$: Cyclic reference involving object WebIdentityTokenFileCredentialsProvider

Expectation

The error is reproducible by running sbt doc but I've bumped into it when running sbt stage (sbt-native-packager version 1.9.16).

It looks similar to this issue: #15288

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions