We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On core24, $SNAPCRAFT_PROJECT_VERSION and $SNAPCRAFT_PROJECT_NAME are not replaced in parts.
Build the core24 snap at https://github.com/lengau/hello-snapcraftio
Compare to the (working) core22 snap.
Ubuntu Noble
name: hello base: core24 build-base: devel confinement: strict grade: devel platforms: amd64: arm64: armhf: ppc64el: riscv64: s390x: version: "2.12.1" summary: GNU Hello description: GNU hello prints a friendly greeting. apps: hello: command: bin/hello universe: # '"' is not allowed for commands. command: bin/hello -g $SAY environment: SAY: "Hello, universe!" parts: gnu-hello: source: https://git.savannah.gnu.org/git/$SNAPCRAFT_PROJECT_NAME.git source-tag: v$SNAPCRAFT_PROJECT_VERSION plugin: autotools build-packages: - wget - gperf - texinfo - help2man autotools-configure-parameters: - --prefix=/ stage: - -share/man - -share/info
lengau@ratel:~/Projects/hello-snapcraftio$ snapcraft pack --verbosity=verbose Starting snapcraft, version 8.0.5.post142+gitab1c86df Logging execution to '/home/lengau/.local/state/snapcraft/log/snapcraft-20240327-201231.164719.log' Launching managed ubuntu devel instance... Starting instance Creating instance from base instance Starting instance Starting snapcraft, version 8.0.5.post142+gitab1c86df Logging execution to '/tmp/snapcraft.log' Initialising lifecycle Installing build-packages Installing build-snaps Pulling gnu-hello Failed to pull source: command ['git', 'clone', '--recursive', '--branch', 'v$SNAPCRAFT_PROJECT_VERSION', 'https://git.savannah.gnu.org/git/$SNAPCRAFT_PROJECT_NAME.git', '/root/parts/gnu-hello/src'] exited with code 128. Recommended resolution: Make sure sources are correctly specified. Failed to execute snapcraft in instance. Full execution log: '/home/lengau/.local/state/snapcraft/log/snapcraft-20240327-201231.164719.log'
No response
The text was updated successfully, but these errors were encountered:
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2655.
This message was autogenerated
Sorry, something went wrong.
Curiously, {SNAP,}CRAFT_PROJECT_GRADE is never replaced.
{SNAP,}CRAFT_PROJECT_GRADE
I think this is the same as #4704, but I'm not sure
Fixed via #4757.
CRAFT_PROJECT_NAME and CRAFT_PROJECT_VERSION are still not evaluated. Tracking with canonical/craft-application#320
CRAFT_PROJECT_NAME
CRAFT_PROJECT_VERSION
No branches or pull requests
Bug Description
On core24, $SNAPCRAFT_PROJECT_VERSION and $SNAPCRAFT_PROJECT_NAME are not replaced in parts.
To Reproduce
Build the core24 snap at https://github.com/lengau/hello-snapcraftio
Compare to the (working) core22 snap.
Environment
Ubuntu Noble
snapcraft.yaml
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: