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 bug in publish command caused by lack of flag override #292

Merged
merged 1 commit into from Jun 3, 2021

Conversation

Integralist
Copy link
Collaborator

@Integralist Integralist commented Jun 3, 2021

Problem: A report came in to say that using publish with the --service-id flag was causing an error stating the relevant service could not be found, while switching to the deploy command (which publish proxies to) the flag would work as expected.

This was caused by the publish command not overriding the manifest field used by the deploy command it was proxying to.

@Integralist Integralist added the bug Something isn't working label Jun 3, 2021
@Integralist Integralist requested review from a team and triblondon and removed request for a team June 3, 2021 13:33
@Integralist Integralist merged commit 54f95ef into main Jun 3, 2021
@Integralist Integralist deleted the integralist/publish-sid-flag branch June 3, 2021 14:01
@gaastonsr
Copy link

gaastonsr commented Jun 23, 2021

Is there a chance this regressed? I'm using Fastly CLI version 0.31.0 and running

$ fastly version
Fastly CLI version 0.31.0 (e2b6042)
Built with go version go1.16.5 linux/amd64

$ fastly compute publish --service-id=MY_SERVICE_ID
✓ Initializing...
✓ Verifying package manifest...
✓ Verifying local rust toolchain...
✓ Building package using rust toolchain...
✓ Creating package archive...

SUCCESS: Built rust package compute-edge-service (pkg/compute-edge-service.tar.gz)


ERROR: the Fastly API returned 404 Not Found: Record not found (Cannot find service 'SERVICE_ID_I_WANT_TO_OVERRIDE').

@Integralist
Copy link
Collaborator Author

@gaastonsr Apologies, yes this looks to be a regression caused by #302 which accidentally undid these changes.

I'll get a PR worked on to resolve this.

@Integralist Integralist mentioned this pull request Jun 23, 2021
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

Successfully merging this pull request may close these issues.

None yet

3 participants