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.

Add flag to init to tweak how revision constraints are imported #1667

@carolynvs

Description

@carolynvs

It's frustrating for dep init to throw away all the constraints, especially for some of the imported configs that don't have constraints at all. dep is opinionated about avoiding pinning, but if someone really wants to, we shouldn't stand in the way. It's especially helpful for more complicated dep migrations, where it's not an immediately switchover.

I'd like to see something like dep init --strict which would do a couple things:

  1. Don't throw away revision constraints
  2. Don't guess at constraints, faithfully import what is found
  3. Return a non-zero exit code and print a warning when the imported lock doesn't match the final lock. (see Note diffs b/w imported and solved lock #1475)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions