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

"exit status 1", no explanation #23

Open
walles opened this issue Aug 15, 2023 · 3 comments
Open

"exit status 1", no explanation #23

walles opened this issue Aug 15, 2023 · 3 comments

Comments

@walles
Copy link

walles commented Aug 15, 2023

~/s/moar (master|✔) $ goweight moar
2023/08/15 20:24:45 exit status 1
~/s/moar (master|✔) [1]$

Tried it on https://github.com/walles/moar.

Here's what the go.mod file looks like:

module github.com/walles/moar

go 1.20

require (
	github.com/alecthomas/chroma/v2 v2.4.0
	github.com/google/go-cmp v0.5.9
	github.com/sirupsen/logrus v1.8.1
	golang.org/x/sys v0.1.0
	golang.org/x/term v0.0.0-20210503060354-a79de5458b56
	gotest.tools/v3 v3.3.0
)

require github.com/dlclark/regexp2 v1.4.0 // indirect
@msknapp
Copy link

msknapp commented Aug 22, 2023

Same thing happened to me.

@mtvrsh
Copy link

mtvrsh commented Sep 17, 2023

From help: usage: goweight [<flags>] [<packages>] and moar is not package. Try goweight . or goweight github.com/walles/moar

@walles
Copy link
Author

walles commented Sep 19, 2023

That worked, thanks!

I still think the exit diagnostics should be improved.

Rather than...

exit status 1

... maybe ...

"moar" is not a package name. Try "goweight ." in the go.mod directory and see if that works any better!

?

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

No branches or pull requests

3 participants