Skip to content

Fix gitfs symlink handling - #93

Merged
yosifkit merged 1 commit into
docker-library:masterfrom
infosiftr:gitfs-symlinks
Feb 26, 2024
Merged

Fix gitfs symlink handling#93
yosifkit merged 1 commit into
docker-library:masterfrom
infosiftr:gitfs-symlinks

Conversation

@tianon

@tianon tianon commented Feb 22, 2024

Copy link
Copy Markdown
Member

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

codecov-commenter commented Feb 22, 2024

Copy link
Copy Markdown

⚠️ 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

tianon commented Feb 22, 2024

Copy link
Copy Markdown
Member Author

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

@yosifkit
yosifkit merged commit d23b943 into docker-library:master Feb 26, 2024
@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