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

Conversation

@sdboyer
Copy link
Member

@sdboyer sdboyer commented Oct 13, 2017

What does this do / why do we need it?

This introduces a new type, IgnoredRuleset, which encapsulates both literal and wildcard ignores. It is swapped in in place of map[string]bool wherever we'd been using that previously.

What should your reviewer look out for in this PR?

Correctness issues in the implementation itself, or sloppiness in the conversion.

Which issue(s) does this PR fix?

fixes #1264

This provides a single type for handling both literal and wildcard
ignore patterns, allowing us to tighten up a few interfaces.
@sdboyer sdboyer self-assigned this Oct 13, 2017
@sdboyer sdboyer requested a review from darkowlzz October 13, 2017 13:14
@sdboyer sdboyer requested a review from jmank88 as a code owner October 13, 2017 13:14
The most crucial piece is fixing the hasher to make its prefix checks
without the wildcard suffix for the purpose of determining whether the
ignore affects the root project; otherwise, wildcards on the root of the
current project (why would you do this?) would be erroneously included
in hash inputs.
This also adds `dep hash-inputs` output to both of the harness tests, so
that it's easier for developers to keep track of the expected output in
these cases.
@sdboyer sdboyer requested a review from ibrasho as a code owner October 13, 2017 14:37
@sdboyer sdboyer requested a review from carolynvs as a code owner October 13, 2017 18:18
@darkowlzz
Copy link
Collaborator

Went through once and got the idea. Makes sense 👍 much better

I'll go through one more time tomorrow, if you don't merge it by then 😊

@sdboyer sdboyer changed the title [WIP] Introduce IgnoredRuleset Introduce IgnoredRuleset Oct 13, 2017
It's clearer just to use the string literal in this case.
@sdboyer
Copy link
Member Author

sdboyer commented Oct 14, 2017

ok, putting this in so that we can get to the bits we care about, heh

@sdboyer sdboyer merged commit 31dfa52 into golang:master Oct 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wildcard ignore not working

3 participants