-
Notifications
You must be signed in to change notification settings - Fork 181
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
Fixed a bug on checks file. #17
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
# Folders | ||
_obj | ||
_test | ||
.idea/ | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
echo "Checking Go version..." | ||
ver=$(go version | awk '{print $3}') | ||
expVer="go1.4" | ||
if [[ ${ver} != ${expVer} ]]; then | ||
if [[ ${ver:0:${#expVer}} != ${expVer} ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this let a user with go ver 1.4.1 to build? There is a potential issue with allowing that, which I remember I hit during initial development of introducing these build time checks. Since the object files of 1.4.1 are not compatible with 1.4 (which is the go version in our vagrant box), it breaks 'make unit-test' which we need to run in a vagrant sandbox. To keep the test time low we went with a pre-customized box and had this stricter check. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah! exactly I'm encounter those problems right now |
||
echo "Go version check failed. Expected ${expVer} but found ${ver}" | ||
exit 1 | ||
fi | ||
|
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.
just for my understanding, how is this directory used? Is it IDE specific?
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.
Yes, it is the IntelliJ IDEA