-
Notifications
You must be signed in to change notification settings - Fork 96
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
vagga fails to build container with subconfigs: can't read /usr/local/bin ? #519
Comments
Your config is not complete:
Also there is no |
@anti-social will post more complete config on work week, though it still references proprietary code... |
I've updated the first comment and added those you mentioned, and two files used to generate a sub-config. As for ciri, pavetta and SDK deb packages, I currently can't share them. In case it reproduces with dummy rust projects / dummy deb, it's gonna be great. Meanwhile I'll try to minimize the example. |
This error means that container version changes during the build of that container. At a glance, I don't see any obvious conflicts here. But maybe it's because of things you've stripped. The most common case is when you In that case, you should put the result of the build into the container itself (i.e. in The |
First two paragraphs make sense. The last one perplexes me however. Is that correct that I There Rust sources are in the VCS, via a submodule repo. |
Yes, it looks like perfectly correct. By the way, there is a way to debug dependencies:
Try it before and after bulding |
Okay so I tried that. Any more pointers on where to look? Does vagga interact with git or submodules in particular? Can you clarify the following from
Also, in docs for
Tried building and then rebuilding the |
I've been able to produce a minimal example using a simple "Hello, world" rust program. https://github.com/mkpankov/vr To reproduce the problem, you have to build once with Even though the
I suspect the issue is that there's untracked state in |
Well, these are offending lines:
Because The fix is easy: put |
I started with simple |
So yeah, it did help in the minimal example... problem is, simple |
Found the actual issue. This commit makes it fail in all cases (even initial build is not successful). |
I've also reduced the reproduction repository to not include any compilation. Problem is present when simply depending on files, copying them into container, using this container in |
If I were to try and fix this, where in the sources should I be looking? |
Well, thank you for finding this out! It's really a bug, but not trivial to fix:
Now (1) requires changing internal API, which isn't very hard. But it might be non-trivial to keep use-case (2) functioning in all cases. On the other hand, in trivial cases of subconfig where yaml isn't generated you can use sequence unpacking:
|
Extra thoughts: It became easier to spot when I enabled debug log ( If we are to fix the bug, the stumble block isn't non-existent |
Hi,
I need help with an issue I'm encountering consistently on my project.
I couldn't minimize it yet - maybe you can tell what's wrong already.
This issue occurs when directly building final container
pavetta-sdk-custom
, but if we first buildpavetta-redist
, it goes away.There's also a warning I don't know how to handle:
Relevant configs are:
prepare-sdk-yaml.py:
sdk-spec.template.yaml:
The text was updated successfully, but these errors were encountered: