-
Notifications
You must be signed in to change notification settings - Fork 22
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
Failed to run while using Go Toolchain #61
Comments
How are you installing the toolchain? Are you using I just ran a fresh test using 1.22.4
Could you run an |
to reproduce, create a dir with the
then run After these, you will see the |
|
Google's developers decided not to include the misc folder in the toolchain package, which can be found discussed at golang/go#68024. |
Ahh I see. Well, that's an interesting one. So in that case, I think the reasonable workaround would be to set the env var for |
But this may break other things use the same logic but read the exist file. They will read the wrong edition. |
Yes, the main binary distribution should atleast be the same minor version as the toolchain distribution. If you are using a newer minor version from the Go toolchain, then of course there will be issues. But more importantly, this is only while running tests so you have more flexibility in how you run them. You can either choose to avoid using the downloaded toolchain, but instead use the binary distribution. Or you can use the toolchain version, but just vary in patch version from the binary toolchain. |
I still think adding additional logic is necessary, toolchain can be implicitly enabled by |
And does |
Thanks. On further thoughts, I think the best way is to have the directory included in the toolchain build. I have pinged in the issue for it to be reconsidered. Let's see. |
Maybe you can pin this issue to let the users know what happened. Even if the proposal is accepted, we will need to wait for the next release to include these files. |
@Zxilly - I believe this issue can be closed now? Let me know if there is anything else needed. |
Line 58 in 0667919
needs a fallback logic for new file location |
When running the test with the go toolchain enabled, the
GOROOT
is set to the path of the go toolchain package.However, it doesn't contain the
misc
folder, which leads to an error likeSince this package was the official suggested test runner, I think this situation should be considered.
https://github.com/golang/go/wiki/WebAssembly#running-tests-in-the-browser
The text was updated successfully, but these errors were encountered: