-
Notifications
You must be signed in to change notification settings - Fork 22
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
switch-config and pkg osdeps #318
Comments
At what point during the "switch" did this error happen ? Did autoproj switch the configuration anyways, or did it fall back to the current config ? |
The error happens right at the begging, while trying to update the packages.
|
It stays that way after a run of |
I think this is "normal" behavior of autoproj: update returns an error if osdeps are not found. The config switch removed an osdep definition and changed the branch of a package requiring it (which removes the dependency from the package) but did not update the package. So, after switch-config, the osdep definition is gone, the package is still on the old branch and aup returns an error because the osdep is not defined. Workaround is what Sylvain said: I'm wondering if an autoproj update is what you would do all the time after a switch-config? In this case the |
After
Would be: Doing |
I agree that the autoproj behavior is not great right now, but you really don't need switch-config in CI. Bootstrap instead with the right branch. I would go for having |
Is there a reason for loading the manifests during a switch-config? |
We could also use the same kind of workaround I used in the github plugin: just rescue and ignore PackageNotFound during switch-config |
I don't think there is. It just happens to be in the code path. As far as I remember, switch-config does update the configuration. |
Sounds like an easy fix then |
I'm having a problem with
autoproj switch-config
using the manifest of a package that is no longer valid.I have a branch (e.g
stable
) on the buildconf, with a snapshot.yml (the overrides) of packages in a stable version (including the package-set).On master, a new osdeps was defined on the package-set and added on the manifet of one package (e.g.
my_package
).Now I want to switch from master to stable.
When I do
autoproj switch-config git git@git-repo/exemplo.git branch=stable
, I got the follow error.I believe autoproj is considering the manifest of my_package on the master branch, instead of the stable branch, (in stable branch the os-deps was not yet defined neither on package-set nor in my_package).
Am I doing something wrong or is it a bug in autoproj?
The text was updated successfully, but these errors were encountered: