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 multiple deploy tag handling in the CLI with an explicit project directory #108

Merged
merged 2 commits into from
May 22, 2024

Conversation

sangaline
Copy link
Contributor

The --tag option on sindri deploy was defined as a variadic option <tag...> which allowed specifying multiple tags. This created a problem when the optional positional argument for the project directory was also specified because it would be interpreted as an additional tag. For example, sindri deploy -t v1.0.0 my-circuit would treat both v1.0.0 and my-circuit as tags while using the default . as the project directory.

This PR fixes the handling so that you need to repeat the tag argument for each tag and the project directory is no longer consumed as a tag. So you can now do sindri deploy -t v1.0.0 -t latest my-circuit and have v1.0.0 and latest treated as tags while my-circuit is the project directory.

Copy link

@jason-sindri jason-sindri left a comment

Choose a reason for hiding this comment

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

lgtm

@sangaline sangaline merged commit 87f517a into main May 22, 2024
6 checks passed
@sangaline sangaline deleted the ews-fix-multiple-deploy-tags branch May 22, 2024 17:32
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