Skip to content

The fix sub-command built-in rules don't retain directive key aliases and use defaults #3421

@Gedochao

Description

@Gedochao

Version(s)
94a6e37 / 1.5.4

Describe the bug
When using the fix sub-command built-in rules to migrate using directives, directive key aliases are not retained.
i.e. //> using dep becomes //> using dependency.

To Reproduce
run

scala-cli fix . --power

on a Scala CLI project with

//> using dep com.lihaoyi::os-lib:0.9.3

the resulting project.scala will contain:

// Main
//> using dependency com.lihaoyi::os-lib:0.9.3

Expected behaviour
Directive key aliases should be retained.

Extra context

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXbugSomething isn't workingexperimentalTickets tied to experimental features.subcommand:fixissues tied to the `fix` sub-command.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions