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 gitfs symlink handling #93

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

tianon
Copy link
Member

@tianon tianon commented Feb 22, 2024

In my refactoring to use go-git's Tree objects, I missed this edge case (that symlinks get resolved to be relative to the Git root, but our Tree object is a subdirectory).

@tianon tianon requested a review from yosifkit as a code owner February 22, 2024 23:22
@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.45%. Comparing base (ca06476) to head (722f7d6).
Report is 12 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
+ Coverage   75.32%   75.45%   +0.13%     
==========================================
  Files           8        8              
  Lines         924      929       +5     
==========================================
+ Hits          696      701       +5     
  Misses        173      173              
  Partials       55       55              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

In my refactoring to use `go-git`'s `Tree` objects, I missed this edge case (that symlinks get resolved to be relative to the Git root, but our `Tree` object is a subdirectory).
@tianon
Copy link
Member Author

tianon commented Feb 22, 2024

Now with a new test that actually covers this edge case.

@yosifkit yosifkit merged commit d23b943 into docker-library:master Feb 26, 2024
6 checks passed
@yosifkit yosifkit deleted the gitfs-symlinks branch February 26, 2024 21:55
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.

3 participants