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

Peru does not see changes when rev is a branch #245

Open
jankap opened this issue Oct 19, 2023 · 2 comments
Open

Peru does not see changes when rev is a branch #245

jankap opened this issue Oct 19, 2023 · 2 comments

Comments

@jankap
Copy link

jankap commented Oct 19, 2023

Suppose I'm using a git module with ref: main, i.e. a branch information. When I push changes to that branch and run peru sync, the changes are not pulled, only after peru reup, but that updates my other (hard coded) revs, too, which is something I'd like to avoid.

Is that intended?

Thanks

@oconnor663
Copy link
Member

Try peru sync --no-cache.

@jankap
Copy link
Author

jankap commented Oct 20, 2023

I'd like to use the cache, but your suggestion makes sense.

However, I came up with a different solution:

imports:
    track-main: lib/tracking-main
    track-rev: lib/tracking-rev

git module track-main:
    url: https://....git
    rev: 72a6daa4a3efd3d654565b69c59b4700c2d020fa # this is the current main branch rev after reup
    reup: main
    # track the main branch

git module track-rev:
    url: https://....git
    rev: 72a6daa4a3efd3d654565b69c59b4700c2d020fa
    reup: 72a6daa4a3efd3d654
    # track only a revision that remains after reup

Is this okay to use in such a way? I'd like to "pin" some versions to a rev, even during reup.

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

No branches or pull requests

2 participants