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

Default an empty constraint as any, not latest #901

Merged

Conversation

carolynvs
Copy link
Collaborator

@carolynvs carolynvs commented Jul 26, 2017

When a package is specified without any restrictions, default the constraint to gps.Any(), not latest from the default branch.

Work in pending pull requests for the importers has made it clear that this change is universally needed and shouldn't be done one-off in each importer.

@carolynvs carolynvs requested a review from sdboyer July 26, 2017 00:22
@carolynvs carolynvs force-pushed the default-emptyconstraint-to-unconstrained branch from b99ecd0 to 81af9d6 Compare July 26, 2017 00:24
@sdboyer
Copy link
Member

sdboyer commented Jul 26, 2017

oh, yes, this definitely makes a lot of sense. i think i'd assumed we were doing it this way already 😛

@carolynvs
Copy link
Collaborator Author

I'm pretty sure that I misread a TODO and flipped the behavior a while back... 😝

Copy link
Member

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sdboyer
Copy link
Member

sdboyer commented Jul 26, 2017

basic impl looks good, seems like we just need test fixes

@carolynvs carolynvs force-pushed the default-emptyconstraint-to-unconstrained branch from 81af9d6 to ca54d47 Compare July 26, 2017 20:45
@carolynvs
Copy link
Collaborator Author

I've removed the offending the testdata, it really belonged in PR #898.

Copy link
Collaborator

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@darkowlzz darkowlzz merged commit eb5b757 into golang:master Jul 28, 2017
@carolynvs carolynvs deleted the default-emptyconstraint-to-unconstrained branch October 6, 2017 15:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants