Skip to content

SIP-51 warning prints an invalid reference to subproject #8056

@eed3si9n

Description

@eed3si9n

I know this is likely a minor issue, but if a user overrides the default derived project name (i.e., sbt.Keys#name), an invalid SBT command would be printed here:

sbt:scalac-profiling-root> scalac-profiling/evicted
[error] Expected ID character
[error] Not a valid command: scalac-profiling
[error] Expected project ID
[error] Expected configuration
[error] Expected ':'
[error] Expected key
[error] Not a valid key: scalac-profiling (similar: scalafmtConfig, scalacOptions)
[error] scalac-profiling/evicted
[error]

IIUC, this is because name only affects the publishing artifacts' name and the display name in the SBT shell, and it cannot be used as a reference to the project in SBT shell. My quick attempt to workaround this has failed. Can you folks suggest anything here?

Originally posted by @danicheg in #8012 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions