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

Add a --local-only flag to the flyctl deploy command #238

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

codepope
Copy link
Contributor

Fixes #237

if op.RemoteOnly() {
commandContext.Status("flyctl", cmdctx.SINFO, "Remote-only set: performing remote build...")
} else {
commandContext.Status("flyctl", cmdctx.SINFO, "Docker daemon available: Still performing remote build...")
Copy link
Member

Choose a reason for hiding this comment

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

I think this line is unreachable since docker available and remote only false would use the branch on line 173.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pondered that and considered that it was possible if the remote/local flags lost their exclusion line in the deploy op. The fact that it doesn't flag unreachable leaves me tending to leave it there.

@codepope codepope merged commit 0861671 into master Jul 16, 2020
@codepope codepope deleted the codepope/issue237 branch July 16, 2020 09:13
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.

Add a --local-only flag to the flyctl deploy command
2 participants