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: specify snapcraft-project-root instead of snapcraft-yaml-path #20

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

jnsgruk
Copy link
Member

@jnsgruk jnsgruk commented Dec 5, 2023

This fixes our current build issues where we were passing the path of a snapcraft.yaml to snapcore/action-build, and indeed to snapcraft remote-build.

This is an API change, but I don't think we'd actually adopted the new option anywhere yet, so we're clear! 😅

The logic here is that if you have a non-standard location for your snapcraft project, the input you provide is the snapcraft-project-root - or put simply the path from the root of the repo where you'd usually run snapcraft pack yourself. From the project root, there are only 4 valid paths to the snapcraft.yaml, which we can compute easily once we have the project root.

Tested each workflow in a separate repo, both with and without specifying the new option, and they all seem to check out.

Copy link
Member

@lucyllewy lucyllewy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jnsgruk jnsgruk merged commit 28ccdaa into snapcrafters:main Dec 5, 2023
1 check passed
@jnsgruk jnsgruk deleted the fix-snap-build-action branch December 5, 2023 18:54
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.

2 participants