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

verify: Exclude symlinks from hash digests #1960

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

sdboyer
Copy link
Member

@sdboyer sdboyer commented Jul 25, 2018

What does this do / why do we need it?

Completely exclude symlinks from the file tree hashing algorithm behind vendor verification. We never traversed them, but this change means we don't even incorporate their target path into the hash.

As we're moving in the direction of excluding symlinks entirely from dependencies (hallelujah!), it's preferable to have the initial release of vendor verification exclude symlinks from hash digests entirely. For the most part, people shouldn't notice it, and we won't be forced to bump the hash version when we stop writing out symlinks (though we may bump it anyway).

What should your reviewer look out for in this PR?

Unintended consequences of this, mostly.

Do you need help or clarification on anything?

Nope.

Which issue(s) does this PR fix?

fixes #1931

@sdboyer sdboyer self-assigned this Jul 25, 2018
@sdboyer sdboyer force-pushed the symlink-noverify branch from 23ccab6 to 2048fea Compare July 25, 2018 03:23
@sdboyer sdboyer added this to the v0.5.0 milestone Jul 25, 2018
As we're moving in the direction of excluding symlinks entirely from
dependencies (hallelujah!), it's preferable to have the initial release
of vendor verification exclude symlinks from hash digests entirely.
For the most part, people shouldn't notice it, and we won't be forced to
bump the hash version when we stop writing out symlinks (though we may
bump it anyway).
@sdboyer sdboyer force-pushed the symlink-noverify branch from 2048fea to a6ab319 Compare July 25, 2018 03:59
@sdboyer sdboyer requested a review from ibrasho as a code owner July 25, 2018 03:59
@sdboyer sdboyer merged commit ba8d750 into golang:master Jul 25, 2018
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.

Ignore symlinks in tree hasher
2 participants