Skip to content

[0.13.10] Source compatibility breakage due to ambiguous imports #2415

@eed3si9n

Description

@eed3si9n

Ref #2399

@fommil wrote in https://gitter.im/sbt/sbt?at=56a3c957586242210adf1d87

is anybody seeing this with 0.13.10-RC1?

 /home/fommil/.sbt/0.13/global.sbt:8: error: reference to useGpgAgent is ambiguous;
it is imported twice in the same scope by
import com.typesafe.sbt.pgp.PgpKeys._
and import _root_.com.typesafe.sbt.SbtPgp.autoImport._
useGpgAgent := true

is there now an implicit dependency on the pgp plugin?

Us importing autoImport._ might be breaking source compatibility.

"not doing a wildcard import" is apparently a workaround, but this is a sticky situation because global settings are used across all 0.13 builds. Maybe we need to hide this feature behind a flag?

/cc @timcharper

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions