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

Detect if mockgen and goimports are in the path #278

Merged
merged 1 commit into from
Jan 3, 2019
Merged

Detect if mockgen and goimports are in the path #278

merged 1 commit into from
Jan 3, 2019

Conversation

nak3
Copy link
Contributor

@nak3 nak3 commented Dec 23, 2018

Description of changes:

This patch adds validation to detect if mockgen and goimports are
in the executable file path before running commands.

Currently, if either mockgen or goimports does not exists, the
program stops, but mock codes are gone.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This patch adds validation to detect if `mockgen` and `goimports` are
in the executable file path before running commands.

Currently, if either `mockgen` or `goimports` does not exists, the
program stops, but mock codes are gone.
@@ -44,13 +44,23 @@ const (
`
)

// TODO detect if mockgen or goimports are in the path
var (
requiredCommands = [2]string{"mockgen", "goimports"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks!

@mogren mogren merged commit 41ca596 into aws:master Jan 3, 2019
@nak3 nak3 deleted the commandPathmock branch January 3, 2019 02:16
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