Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore unexpected file modes #573

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

avidrissman
Copy link
Contributor

Correct #549.

The intention was to skip the file with an unexpected mode, but the “nil, nil” return was actually done in a nested function.

Return ErrSkip to escape the nested function, and correctly return “nil, nil” from visitPath, as was intended.

Correct bazelbuild#549.

The intention was to skip the file with an unexpected mode, but the “nil, nil” return was actually done in a nested function.

Return ErrSkip to escape the nested function, and correctly return “nil, nil” from visitPath, as was intended.
@avidrissman
Copy link
Contributor Author

I was foolish with the original patch, assuming it was trivial enough that I didn’t need to test it. This patch has been tested in-place with LUCI, and it works.

@avidrissman
Copy link
Contributor Author

@mrahs Can you ptal? Thanks.

@mrahs mrahs merged commit 50b93e0 into bazelbuild:master May 21, 2024
6 checks passed
@avidrissman avidrissman deleted the patch-1 branch May 21, 2024 13:46
hubot pushed a commit to luci/luci-go that referenced this pull request May 21, 2024
To pick up bazelbuild/remote-apis-sdks#573

[email protected], [email protected]
BUG=b:341233006

Change-Id: Ic4aa85943d5b4d8f04c8e49f3f748865acc9b984
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/5556143
Reviewed-by: Chan Li <[email protected]>
Commit-Queue: Vadim Shtayura <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants