Skip to content

dub add-local should affect dub run #2706

@vpanteleev-sym

Description

@vpanteleev-sym

Consider the situation:

  • There is a script which, somewhere deep inside, runs dub run
  • We would like to substitute that invocation with a provided copy of the package (e.g. because we need to run the script offline, or use a slightly modified version of the package being run)

So, if the script runs dub run [email protected], we should be able to use dub add-local path/to/our/version/of/package 1.2.3 first to make the former command use the version specified in the latter command.

Alternatively, a hypothetical dub install --version=1.2.3 could install the package from the current directory into Dub's cache, so that dub run would then use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions