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

Fix ignored per-project prune options (#1561) #1562

Merged
merged 1 commit into from Jan 24, 2018

Conversation

speijnik
Copy link
Contributor

What does this do / why do we need it?

Per-project prune option handling is broken in v0.4.0. This PR fixes the handling and add corresponding
tests.

Which issue(s) does this PR fix?

Fixes #1561

* Use prune options defined per-project when generating gps.RootPruneOptions
* Add test cases checking if this behavior is correct
@speijnik
Copy link
Contributor Author

Updated CHANGELOG.md

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.

thanks for catching this.

just one nit, then we can merge, and i'll roll a v0.4.1 😢

GoTests: true,
Projects: []rawPruneProjectOptions{
{
Name: "github.com/golang/dep/gps",
Copy link
Member

Choose a reason for hiding this comment

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

Not actually a legal name, here - it's expected to be a project root (github.com/golang/dep). Given the inherent ambiguity of this, even if the test does what we want in the short term, it's better to never give the wrong impression.

@sdboyer
Copy link
Member

sdboyer commented Jan 24, 2018

actually just going to merge as-is, then i'll fix. thanks.

@sdboyer sdboyer merged commit e96a004 into golang:master Jan 24, 2018
@speijnik
Copy link
Contributor Author

Perfect, thanks for merging the PR.

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.

Per-project prune options are ignored
3 participants