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

fix: inject aliased snaps into build environment #467

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

mr-cal
Copy link
Contributor

@mr-cal mr-cal commented Sep 13, 2024

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run tox?

Inject snaps into the build environment using their aliased name.

I tested and confirmed this works with the reproducer in canonical/snapcraft#4683.

However, I tested with a locally built snap, so it had no assertions. The secondary failure in craft-providers with snap ack will probably start occurring when testing with a signed snap from the store.

The craft-providers fix is probably changing this line to snap_name.split('_')[0].

Fixes #411

@mr-cal mr-cal force-pushed the work/CRAFT-3212/snap-aliases branch from e68695e to 383c5f1 Compare September 13, 2024 15:04
@mr-cal mr-cal changed the base branch from main to hotfix/4.2 September 13, 2024 15:04
@mr-cal mr-cal force-pushed the work/CRAFT-3212/snap-aliases branch from 383c5f1 to 92184b4 Compare September 13, 2024 15:07
@mr-cal mr-cal requested review from tigarmo and lengau September 13, 2024 15:14
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
@mr-cal mr-cal force-pushed the work/CRAFT-3212/snap-aliases branch from 92184b4 to 9726f51 Compare September 16, 2024 15:37
@mr-cal mr-cal merged commit 77a3582 into hotfix/4.2 Sep 16, 2024
6 checks passed
@mr-cal mr-cal deleted the work/CRAFT-3212/snap-aliases branch September 16, 2024 15:45
linostar pushed a commit to linostar/craft-application that referenced this pull request Dec 4, 2024
Signed-off-by: Callahan Kovacs <callahankovacs@gmail.com>
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

Successfully merging this pull request may close these issues.

Support snap parallel installs
3 participants