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

Remove trailing slashes from tools/staging_env.sh #4201

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

tartley
Copy link
Contributor

@tartley tartley commented Jun 5, 2023

The motivating case was STORE_UPLOAD_URL. With a trailing slash,
I fail to upload to the staging Store:

snapcraft upload jhartley-two_1.4_amd64.snap
craft-store error: Issue encountered while processing 
    your request: [405] Method Not Allowed.

I see roadmr already submitted an old unmerged PR to fix this
particular slash, and in the comments @sergiusens asked if he could
remove the all trailing slashes from envvars, so this PR does that.


  • [y] Have you followed the guidelines for contributing?
  • [y] Have you signed the CLA?
  • [NO] Have you successfully run make lint?
  • [NO] Have you successfully run pytest tests/unit?

I don't have a working snapcraft dev env. Taking a look at what
is needed, will update this when I succeed...

The motivating case was STORE_UPLOAD_URL. With a trailing slash,
I fail to upload to the staging Store:

    snapcraft upload jhartley-two_1.4_amd64.snap
    craft-store error: Issue encountered while processing
        your request: [405] Method Not Allowed.

I see roadmr already submitted [an old unmerged
PR](canonical#3876) to fix this
particular slash, and in the comments @sergiusens asked if he could
[remove the trailing slashes from all envvars](canonical#3876 (comment)),
so this PR does that.
@mr-cal
Copy link
Collaborator

mr-cal commented Jun 6, 2023

The CLA check could be failing if you signed the CLA with your @canonical.com email since the github action sees the commit was authored by your [email protected] email.

@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2023

Codecov Report

Merging #4201 (1247fd2) into main (c0c608b) will not change coverage.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##             main    #4201   +/-   ##
=======================================
  Coverage   93.90%   93.90%           
=======================================
  Files         569      569           
  Lines       43746    43746           
=======================================
  Hits        41078    41078           
  Misses       2668     2668           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mr-cal
Copy link
Collaborator

mr-cal commented Jun 6, 2023

Thank you!

@mr-cal mr-cal merged commit f88cf20 into canonical:main Jun 6, 2023
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.

3 participants