-
Notifications
You must be signed in to change notification settings - Fork 244
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
Adds a warning/error message when pushing local component #573
Conversation
cmd/push.go
Outdated
@@ -61,6 +61,10 @@ var pushCmd = &cobra.Command{ | |||
case "local", "binary": | |||
// use value of '--dir' as source if it was used | |||
if len(componentLocal) != 0 { | |||
if sourceType == "binary" { | |||
fmt.Println("unable to push local directory:" + componentLocal + " to component " + componentName + " that uses binary " + sourcePath) |
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.
Please use fmt.Printf
. The message should be a sentence starting with the capital letter and ending with '.',
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.
@kadel Done
…ent with a git repo or binary file as source in buildConfig Signed-off-by: mdas <mrinald7@gmail.com>
5c40914
to
40e5c78
Compare
This LGTM |
@mik-dass Please update your commit message / PR description :) |
@cdrage Done |
@mik-dass Your commit message still doesn't match your PR description. Use Your current commit message is: …ent with a git repo or binary file as source in buildConfig |
@cdrage But I guess my current commit message is
Even |
Issue: #571
Signed-off-by: mdas mrinald7@gmail.com
Adds a warning/error message when pushing local component to a component with a git repo or binary file as source in buildConfig