-
Notifications
You must be signed in to change notification settings - Fork 124
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
golang.org/x/sys and other packages don't seem to work #18
Comments
Can you provide a copy of your go.mod file please? |
The same with:
and others. |
@ilya310300 @floren Please provide a copy of your go.mod file or link to a repo. |
I'm not fully sure that it's the right way to fix that but adding
@RJPercival : would you please confirm if it's right way to fix that issue ? |
If you drop the contents of this gist into a directory, you can 'go build' and it'll work, but running https://gist.github.com/floren/70c8f5c9c12c4b6a2e4b73416604e34d |
This is a general problem with the sys package. For example. the following fails: https://play.golang.org/p/saGt7CYOsm4 package main
import (
"golang.org/x/sys"
)
func main() {
}
|
Here is a repo showing this problem: https://github.com/dcormier/go-licenses (complete with the requested Here is the result of running the command in that repo:
|
Im not sure if this is the same problem but import (
"golang.org/x/sys/windows/registry"
) PS D:\Unity_Projects\nwt7-lvl5-castles\windows\services\go_http_web_service> go build .\http.go
http.go:24:2: no required module provides package golang.org/x/sys/windows/registry: go.mod file not found in current directory or any parent directory; see 'go help modules' |
I think the root cause is that golang.org/x/sys is a module, but it is not a package. So we cannot load the package golang.org/x/sys. |
This can be workarounded by my v2 implementation: #71 that works on modules directly instead of packages. |
Please comment if this still persists, updated documentation and released go modules support in v1.1.0. Note, go-licenses csv accepts a go package, a folder without go files is not a go package. |
I am still seeing the problem:
what was the accepted solution/workaround? I see that #82 was merged though: is anyone else still experiencing the problem? |
@gennaro-tedesco can you share detailed reproduction steps? |
Sure: I am on macOS 10.16.0 Big Sur and I have tried with different values for the
|
The commands you ran do not relate to go licenses though. Note golang.org/x/sys is not a go package, that's why those commands failed. There are go packages with golang.org/x/sys as prefix. |
I'm walking through the dependencies in my go.mod and I find that the golang.org/x/ repositories give me trouble:
Is there a trick to this? Advice?
The text was updated successfully, but these errors were encountered: