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

cmd/egrunner: simplify checking for shell asserts #102

Merged
merged 1 commit into from
Nov 11, 2018
Merged

cmd/egrunner: simplify checking for shell asserts #102

merged 1 commit into from
Nov 11, 2018

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Nov 10, 2018

mvdan.cc/sh version 2.6 adds syntax.Word.Lit, which makes it trivial to
check if a word is simply an unquoted literal. Update the dependency and
remove the now unnecessary reflection code.

go.sum Outdated
@@ -26,7 +26,6 @@ github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/myitcv/gopherjs v0.0.0-20181106113007-59ba804b0d30 h1:ZGxBik0evtvAinQthsLvCU0nQyYcK1tv+d0KoyIitGo=
Copy link
Contributor Author

Choose a reason for hiding this comment

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

go mod tidy removed this, and I have no idea why. I'm on go version devel +fe2c588b1c Sat Nov 10 13:39:01 2018 +0000 linux/amd64.

Copy link
Owner

Choose a reason for hiding this comment

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

go mod tidy is being too aggressive (golang/go#27868 (comment))

The "fix" is to run go list all afterwards, e.g. https://github.com/myitcv/gobin/blob/696e4dd2ca6c4442d5eb3dc45748de11fd413b92/.travis.yml#L21

mvdan.cc/sh version 2.6 adds syntax.Word.Lit, which makes it trivial to
check if a word is simply an unquoted literal. Update the dependency and
remove the now unnecessary reflection code.
@myitcv
Copy link
Owner

myitcv commented Nov 11, 2018

Looks great, thanks, @mvdan. I've force-pushed the "fix" to go.sum to your branch and will merge once the build goes green.

@myitcv myitcv merged commit 49f7e64 into myitcv:master Nov 11, 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.

2 participants