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

Change of pin branch may fail if checkout becomes dirty #1787

Open
mosteo opened this issue Nov 4, 2024 · 0 comments · May be fixed by #1788
Open

Change of pin branch may fail if checkout becomes dirty #1787

mosteo opened this issue Nov 4, 2024 · 0 comments · May be fixed by #1788
Labels
type: bug Something isn't working
Milestone

Comments

@mosteo
Copy link
Member

mosteo commented Nov 4, 2024

Originally submitted to mosteo/aaa#7

We have observed some issues when updating branch pins on crate aaa. Should the config/aaa_config.* files be .gitignoreed?

To reproduce:

  • alr init xxx
  • cd xxx
  • alr pin aaa --use=https://github.com/mosteo/aaa --branch=master
  • alr build
  • Edit the pin in alire.toml, changing branch='master' to branch='feat/machine-output'
  • alr update
  • Observe
    error: Your local changes to the following files would be overwritten by checkout:
          config/aaa_config.ads
          config/aaa_config.gpr
          config/aaa_config.h
    Please commit your changes or stash them before you switch branches.
    
@mosteo mosteo added the type: bug Something isn't working label Nov 4, 2024
@mosteo mosteo added this to the 2.1 milestone Nov 4, 2024
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

Successfully merging a pull request may close this issue.

1 participant