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

fix preserving intermediate symlinks #524

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

mrahs
Copy link
Collaborator

@mrahs mrahs commented Nov 7, 2023

This patch handles virtual inputs. The code that handles virtual inputs skips loadFiles entirely which effectively skips the previous patches.

This patch removes the redundant map by leveraging the existing one, fs. The tradeoff is less allocation from the removed map, but more calls to filepath.Rel and filepath.Join to get the key for the existing map.

Tested on a relevant action locally and confirmed it succeeds. Also ran a full build with no issues.

go/pkg/client/tree.go Outdated Show resolved Hide resolved
This patch handles virtual inputs. The code that handles virtual inputs
skips loadFiles entirely which effectively skips the previous patches.

This patch removes the redundant map by leveraging the existing one, fs.
The tradeoff is less allocation from the removed map, but more calls to
filepath.Rel and filepath.Join to get the key for the existing map.

Tested on a relevant action locally and confirmed it succeeds.
Also ran a full build with no issues.
@mrahs mrahs merged commit 67d0b18 into bazelbuild:master Nov 13, 2023
2 checks passed
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