-
Notifications
You must be signed in to change notification settings - Fork 445
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
Legacy (?) builds may result in inconsistent version being set #4316
Comments
The supplied reproducer uses core22 syntax. The results of testing it are: With snapcraft 7.5.2 (stable)
Rebuild part 1 after editing part-1 and changing the version to 456:
Run snapcraft to complete the build:
With snapcraft 7.5.2.post62+git5ec65724 (edge)
Build part 1 after changing version to 456:
Complete the build:
|
@kubiko we will close this issue tomorrow if there is no reply by then as non reproduceable |
Closing, feel free to reopen with a reproducer if you see this again |
Hi @sergiusens
run:
Used |
@sergiusens, we ran some tests with @cmatsuoka and it seems this has been fixed as a byproduct of the following change So while you can still reproduce it with |
Bug Description
Parts that dynamically set version in the build or stage steps may forget it in the prime step.
To Reproduce
Environment
This was reported by @kubiko, running snapcraft edge (7.5.2.post59+git8758571f) to build a core20 snap.
snapcraft.yaml
Relevant log output
Additional context
This has similar effects, but it's not caused by the same issues addressed in #4305 (legacy builds don't use the lifecycle implemented in Craft Parts). Note however that the supplied reproducer is core22 so clarification is needed on the base where the problem happens.
The text was updated successfully, but these errors were encountered: