Skip to content

Conversation

@sisp
Copy link
Member

@sisp sisp commented Oct 27, 2025

I've fixed a bug related to changing path permissions of a rendered file to match those of the source file on filesystems like gcsfuse that don't allow it. Before, Copier failed when trying to change path permissions, making it impossible to use Copier in such cases. Now, Copier will suppress the error and raise a warning instead. In addition, Copier will only try to change path permissions if source and destination path permissions differ.

Fixes #2298.

@sisp sisp force-pushed the fix/supress-chmod-error branch 2 times, most recently from 2b7f41d to ddd5c3d Compare October 27, 2025 15:48
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

❌ Patch coverage is 95.83333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 97.10%. Comparing base (e82ac24) to head (8bad2e8).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
tests/test_copy.py 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2375      +/-   ##
==========================================
- Coverage   97.10%   97.10%   -0.01%     
==========================================
  Files          55       55              
  Lines        6225     6247      +22     
==========================================
+ Hits         6045     6066      +21     
- Misses        180      181       +1     
Flag Coverage Δ
unittests 97.10% <95.83%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sisp sisp force-pushed the fix/supress-chmod-error branch from ddd5c3d to b6fda24 Compare October 27, 2025 16:20
@sisp sisp force-pushed the fix/supress-chmod-error branch from b6fda24 to 8bad2e8 Compare October 27, 2025 16:37
@sisp sisp merged commit de88305 into master Oct 27, 2025
23 of 24 checks passed
@sisp sisp deleted the fix/supress-chmod-error branch October 27, 2025 17:58
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.

Failed to run_copy when destination is a gcsfuse mounted path

2 participants