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

[Bug]: bad handling of quotes in snapcraft-args #20

Open
Saviq opened this issue Mar 6, 2023 · 0 comments
Open

[Bug]: bad handling of quotes in snapcraft-args #20

Saviq opened this issue Mar 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Saviq
Copy link

Saviq commented Mar 6, 2023

What happened?

As I was moving from bash to this action, I had quotes around one of the arguments. Snapcraft failed to run, then, because the quotes were escaped:

Run diddlesnaps/snapcraft-multiarch-action@v1
  with:
    store-auth: ***
    snapcraft-channel: stable
    architecture: amd64
    snapcraft-args: push glvnd-core22_0.01_amd64.snap --release 'edge/pr1'
    path: .
    use-podman: false
    build-info: true
# ...
Executing: 'snap run snapcraft push glvnd-core22_0.01_amd64.snap --release \'edge/pr1\' '
Uploading... (--->)
Uploading... (<---)
craft-store error: Store operation failed:
- invalid-field: No valid risk provided: 'edge, pr1'

https://github.com/MirServer/glvnd-core22/actions/runs/4341495156/jobs/7581165120#step:3:1586

What should have happened?

Need a way to quote arguments in snapcraft-args. It may be best if it's actually a list, rather than a string.

Output of snap info $snap_name

N/A

Output of snap connections $snap_name

N/A

Output of snap version

N/A

Relevant log output

No response

Teminal output of app

No response

@Saviq Saviq added the bug Something isn't working label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant