Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

UX: ensure -update acme.io/[email protected] should update the dependency constraint #1054

@tiborvass

Description

@tiborvass

FWIW I'm a first-time user of dep.

  • It feels natural to use dep ensure -update github.com/pkg/[email protected] to update the constraint of an existing dependency (thus modifying Gopkg.toml)
  • It would be very useful to have dep ensure -add work irrespective of whether the dependency exists already, and thus behave as -update in the point above, in the case where the dependency already exists.

The two points are related but orthogonal: first is about intuitiveness (use -update to update), the second is about usefulness (I can always use -add).

cc @ibrasho

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