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

Syncing "bad" symlynks fails #1720

Closed
reznikmm opened this issue Jul 13, 2024 · 3 comments
Closed

Syncing "bad" symlynks fails #1720

reznikmm opened this issue Jul 13, 2024 · 3 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@reznikmm
Copy link
Contributor

Describe the bug
When source code contains "cycle symlinks" alr is unable to sync "build dir". See https://github.com/AdaCore/gpr/tree/master/testsuite/tests/gpr-symlinks-cycle/with-resolve-links/

I don't think this is an important bug. Workaround is to set dependencies.shared to False.

To Reproduce
Steps to reproduce the behavior:

  1. alr settings --global --set dependencies.shared True
  2. alr index --add git+https://github.com/reznikmm/als-alire-index.git --name als
  3. alr get --build libadalang
  4. See error: Could not sync build dir from $HOME/.local/share/alire/releases/libgpr2_25.0.0_d9220e60 to $HOME/.local/share/alire/builds/libgpr2_25.0.0_d9220e60/7f41fa68b465cc490af68ae5d2cb2449b133723f03fb10556485c7001d4d437a

Expected Behavior
alr get --build libadalang should work.

alr version
2.0.1

alr logs

Note: Deploying libgpr2=25.0.0-20240625...
Warning: Skipping softlink dir during tree traversal: /home/runner/.local/share/alire/releases/libgpr2_25.0.0_d9220e60/testsuite/tests/gpr-symlinks-cycle/without-resolve-links/B/sym_A
Warning: Skipping softlink dir during tree traversal: /home/runner/.local/share/alire/releases/libgpr2_25.0.0_d9220e60/testsuite/tests/gpr-symlinks-cycle/without-resolve-links/A/sym_B
Warning: Skipping softlink dir during tree traversal: /home/runner/.local/share/alire/releases/libgpr2_25.0.0_d9220e60/testsuite/tests/gpr-symlinks-cycle/with-resolve-links/import_A/link_to_import_B
Warning: Skipping softlink dir during tree traversal: /home/runner/.local/share/alire/releases/libgpr2_25.0.0_d9220e60/testsuite/tests/gpr-symlinks-cycle/with-resolve-links/import_B/link_to_import_A
Note: Deploying libadalang=25.0.0-20240625...
Note: Starting installation of gnatdoc=25.0.0-20240625...
stderr: Could not sync build dir from /home/runner/.local/share/alire/releases/libgpr2_25.0.0_d9220e60 to /home/runner/.local/share/alire/builds/libgpr2_25.0.0_d9220e60/7f41fa68b465cc490af68ae5d2cb2449b133723f03fb10556485c7001d4d437a
ERROR: Could not sync build dir from /home/runner/.local/share/alire/releases/libgpr2_25.0.0_d9220e60 to /home/runner/.local/share/alire/builds/libgpr2_25.0.0_d9220e60/7f41fa68b465cc490af68ae5d2cb2449b133723f03fb10556485c7001d4d437a
@mosteo
Copy link
Member

mosteo commented Jul 15, 2024

I'm just working on related issues on #1718.

@mosteo mosteo self-assigned this Jul 15, 2024
@mosteo mosteo added the type: bug Something isn't working label Jul 15, 2024
@mosteo mosteo added this to the 2.0.2 milestone Jul 15, 2024
@mosteo mosteo modified the milestones: 2.0.2, 2.1 Sep 27, 2024
@mosteo
Copy link
Member

mosteo commented Sep 27, 2024

This works in my system with version from master, probably because of #1751 . Please verify if you can.

@mosteo mosteo closed this as completed Sep 27, 2024
@reznikmm
Copy link
Contributor Author

reznikmm commented Sep 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants