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

0.34.0 changed handling of symbolic files in asset #1966

Closed
aYukiSekiguchi opened this issue Nov 21, 2024 · 2 comments
Closed

0.34.0 changed handling of symbolic files in asset #1966

aYukiSekiguchi opened this issue Nov 21, 2024 · 2 comments

Comments

@aYukiSekiguchi
Copy link
Contributor

My asset files:

% ls -l doc_src/assets
total 40
lrwxr-xr-x  1 yukisekiguchi  staff     47 Nov 21 13:47 AntikytheraArchitecture.drawio.png -> ../../assets/AntikytheraArchitecture.drawio.png
lrwxr-xr-x  1 yukisekiguchi  staff     62 Nov 21 13:47 AntikytheraDeploymentFlow.drawio.png -> ../gear_developers/assets/AntikytheraDeploymentFlow.drawio.png
-rw-r--r--  1 yukisekiguchi  staff  17698 Nov 21 13:47 MemcacheExpiration.png
lrwxr-xr-x  1 yukisekiguchi  staff     56 Nov 21 13:47 RequestHandlingFlow.drawio.png -> ../gear_developers/assets/RequestHandlingFlow.drawio.png

Genearated doc files on 0.33.0

% ls -l doc/assets
total 1296
-rw-r--r--  1 yukisekiguchi  staff   59054 Nov 21 14:01 AntikytheraArchitecture.drawio.png
-rw-r--r--  1 yukisekiguchi  staff  418924 Nov 21 14:01 AntikytheraDeploymentFlow.drawio.png
-rw-r--r--  1 yukisekiguchi  staff   17698 Nov 21 14:01 MemcacheExpiration.png
-rw-r--r--  1 yukisekiguchi  staff  157773 Nov 21 14:01 RequestHandlingFlow.drawio.png

Genearated doc files on 0.34.0

% ls -l doc/assets
total 40
lrwxr-xr-x  1 yukisekiguchi  staff     47 Nov 21 14:08 AntikytheraArchitecture.drawio.png -> ../../assets/AntikytheraArchitecture.drawio.png
lrwxr-xr-x  1 yukisekiguchi  staff     62 Nov 21 14:08 AntikytheraDeploymentFlow.drawio.png -> ../gear_developers/assets/AntikytheraDeploymentFlow.drawio.png
-rw-r--r--  1 yukisekiguchi  staff  17698 Nov 21 14:08 MemcacheExpiration.png
lrwxr-xr-x  1 yukisekiguchi  staff     56 Nov 21 14:08 RequestHandlingFlow.drawio.png -> ../gear_developers/assets/RequestHandlingFlow.drawio.png

I believe this change was introduced by the following commit: f4a46cb

It changed the copy function from File.copy/3 to File.cp_r!/3, which altered the handling of symbolic files.

Is this an intentional change or a bug?

Note: I reproduced this issue in the following repository: https://github.com/access-company/antikythera

@josevalim
Copy link
Member

That was not intentional. Can you please send a PR? It should be a matter of passing the :dereference_symlinks option as true to cp_r!

@aYukiSekiguchi
Copy link
Contributor Author

Thank you for the advice!

I created a PR #1967

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants