-
Notifications
You must be signed in to change notification settings - Fork 281
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 deprecated --worker CLI flag #2603
Conversation
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
@@ -82,7 +81,7 @@ export default class Deploy extends Command { | |||
}), | |||
preview: Flags.boolean({ | |||
description: | |||
'Deploys to the Preview environment. Overrides --env-branch and Git metadata.', | |||
'Deploys to the Preview environment. Overrides Git metadata.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This previously stated that it Overrides --env-branch
, but looking at the original code in this file a little further down it appears that this wasn't actually the case (and I think we should also remove the claim that this overrides the Git metadata too?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes - remove --env-branch
comment
overrides Git metadata
- @frandiox Does hydrogen deploy preview
actually overrides git metadata? I don't see its doing that in code either. Running npx shopify hydrogen deploy --preview
just creates a preview deploy with no changes to user's repo (which is expected). I think the metadata here is referring to oxygen specific metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reverted the removal of the flag, but I think this update should remain as the code shows that this claim was false anyway
.changeset/gorgeous-paws-move.md
Outdated
@@ -0,0 +1,5 @@ | |||
--- | |||
'@shopify/cli-hydrogen': patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frandiox Should this be a major bump?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically yes, but since we are releasing under the bundled global CLI, it doesn't matter much. It's not going to be a major bump in the bundled CLI yet, so feel free to do it in a minor here. It's also been announced as deprecated for very long so it's probably OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gonna need to revert the changes to --env-branch
and leave it in the deprecated state. It can only be remove once --env
is supported in CI. Details https://github.com/Shopify/custom-storefronts/issues/560
I have now reverted the |
WHY are these changes introduced?
This flag has been deprecated for a while and is due to be removed with the next release
WHAT is this pull request doing?
--worker
flagChecklist