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 binary definition to build source #595

Merged
merged 2 commits into from
Aug 7, 2018

Conversation

syamgk
Copy link
Member

@syamgk syamgk commented Jul 23, 2018

add binary definition to build source
fix issue #594

@syamgk syamgk added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. do not review labels Jul 23, 2018
@syamgk syamgk force-pushed the fix-buildConfig branch from 6ac85e8 to 6f741df Compare July 23, 2018 12:40
@syamgk syamgk changed the title Fix #594: add binary definition to build source add binary definition to build source Jul 23, 2018
@syamgk syamgk force-pushed the fix-buildConfig branch 2 times, most recently from 0ae8e1e to 000ea83 Compare July 24, 2018 09:24
@syamgk syamgk removed do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. Required by Prow. do not review labels Jul 24, 2018
@syamgk syamgk force-pushed the fix-buildConfig branch 2 times, most recently from 29d737e to 7116042 Compare July 24, 2018 10:01
@@ -537,6 +537,10 @@ func (c *Client) NewAppS2I(name string, builderImage string, gitUrl string, labe
}

// if gitUrl set change buildSource to git and use given repo
if gitUrl == "" {
return errors.Wrap(err, "unable to create buildSource with empty gitUrl")
Copy link
Member

Choose a reason for hiding this comment

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

What err are you wrapping here?

Copy link
Member Author

Choose a reason for hiding this comment

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

ouch, nice catch
updated the PR

@syamgk syamgk force-pushed the fix-buildConfig branch from 7116042 to bce6121 Compare July 24, 2018 12:28
@@ -507,7 +507,7 @@ func getAppRootVolumeName(dcName string) string {
}

// NewAppS2I create new application using S2I
// gitUrl is the url of the git repo
// if gitUrl is "" then it throws error otherwise uses gitUrl as buildSource
Copy link
Member

Choose a reason for hiding this comment

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

You may as well move this comment, as you comment on this on line 540.

@@ -537,6 +537,10 @@ func (c *Client) NewAppS2I(name string, builderImage string, gitUrl string, labe
}

// if gitUrl set change buildSource to git and use given repo
Copy link
Member

Choose a reason for hiding this comment

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

maybe change this comment in this PR.

if gitUrl is not set, error out.

@syamgk syamgk force-pushed the fix-buildConfig branch 2 times, most recently from 01992ba to 6a80a57 Compare August 1, 2018 13:16
Copy link
Contributor

@anmolbabu anmolbabu left a comment

Choose a reason for hiding this comment

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

LGTM..
But I feel you might need to rebase

@mik-dass mik-dass added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Aug 6, 2018
Copy link
Contributor

@mik-dass mik-dass left a comment

Choose a reason for hiding this comment

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

LGTM but rebase needed :)

syamgk added 2 commits August 7, 2018 15:39
…empty giturl

modified buildSource definition part
to throw error in case of empty gitUrl
in fun NewAppS2I
fix issue redhat-developer#594
change wantErr to false in case of empty gitURL
on TestNewAppS2I
@syamgk syamgk removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. Required by Prow. label Aug 7, 2018
@syamgk
Copy link
Member Author

syamgk commented Aug 7, 2018

rebased

@syamgk syamgk requested a review from cdrage August 7, 2018 14:44
@kadel
Copy link
Member

kadel commented Aug 7, 2018

it looks like @cdrage comments were addressed, and there are 2 LGTMs -> merging

@kadel kadel merged commit 58a69a5 into redhat-developer:master Aug 7, 2018
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.

5 participants