Skip to content

[go1.19] Known fails and build issues fix #1263

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

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

grantnelson-wf
Copy link
Collaborator

@grantnelson-wf grantnelson-wf commented Jan 30, 2024

This PR has three changes:

  1. Fixed a problem when removing/keeping imports in the parse and augment phase. The problem comes from when a file imports something without using the blank (_) name (e.g. import "unsafe" or import us "unsafe") , then augmentation removes all usages of that import except for one or more directives (e.g. //go:linkname). In this case leaving the import as is will cause an "unused import" error but removing the import will result in a "directive X needs import Y" error. To solve this I made this specific case change the name of the import to be a blank import (e.g. import _ "unsafe").

  2. Chocolatey doesn't have go1.19.13 so the Windows CI fails. I changed the Chocolatey to the nearest version it defines, go1.19.9. This fixes the problems for the Windows' CI.

  3. I updated the known fails list for fixed bugs to include new known fails for tests with generics (type parameters) and removed issues which function correctly under go1.19 without generics.

@grantnelson-wf grantnelson-wf marked this pull request as ready for review January 30, 2024 23:54
Copy link
Member

@nevkontakte nevkontakte left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@nevkontakte nevkontakte merged commit 95c01fa into gopherjs:go1.19 Jan 30, 2024
@grantnelson-wf grantnelson-wf deleted the go1.19BuildFix branch January 30, 2024 23:59
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