-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
affected/package: sys #55078
Comments
We don't support 1.13 anymore. |
Fair enough - However I do see the same error on 1.15 - 1.16 |
We only support the 2 most recent releases, right now 1.18 and 1.19 |
i'm experiencing the same issue. it looks like the go devs introduced a bug affecting older versions? does anyone have any workarounds for this? I'm a new Go developer - I've inherited a project that runs on 1.15 using GOPATH (I think rather than go.mod) and am looking to get it to build so I can release some new code. |
@michael-sharethis I agree, this is a breaking change for older versions. |
The workaround is to use an older version of golang.org/x/sys. |
@ianlancetaylor i've tried that but I get errors like this when trying to specify an older version, this project is in GOPATH mode
i didn't see golang.org/x/sys having any version listed in it's gittags... |
Yep!, me affected too: Anoyone knows a fix? |
Something like this might work:
|
How do we fix the for dependency which is indirect? |
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Nothing. Issue appeared as of 9/9/22 due to
ba1ef54
Which switches to using unsafe.Slice
What did you expect to see?
Nothing since this change should've just affected latest versions i.e. 1.17 and 1.18
What did you see instead?
1.13 fails build due to
golang.org/x/sys/unix
| src/golang.org/x/sys/unix/syscall.go:83:16: undefined: unsafe.Slice
| src/golang.org/x/sys/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
| src/golang.org/x/sys/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice
The text was updated successfully, but these errors were encountered: