Skip to content

all: bump golang.org/x/tools and other dependencies - #268

Open
thomasjm wants to merge 1 commit into
gopherdata:masterfrom
codedownio:fix-gophernotes
Open

all: bump golang.org/x/tools and other dependencies#268
thomasjm wants to merge 1 commit into
gopherdata:masterfrom
codedownio:fix-gophernotes

Conversation

@thomasjm

@thomasjm thomasjm commented Jun 4, 2026

Copy link
Copy Markdown

The vendored golang.org/x/tools v0.14.0 uses unsafe struct-layout hacks in internal/tokeninternal that are incompatible with Go 1.26+. That package was removed entirely in newer x/tools versions.

Bump to golang.org/x/tools v0.45.0 and update all transitive dependencies accordingly. Set godebug gotypesalias=0 because gomacro does not support *types.Alias.

The vendored golang.org/x/tools v0.14.0 uses unsafe struct-layout
hacks in internal/tokeninternal that are incompatible with Go 1.26+.
That package was removed entirely in newer x/tools versions.

Bump to golang.org/x/tools v0.45.0 and update all transitive
dependencies accordingly. Set godebug gotypesalias=0 because gomacro
does not support *types.Alias.
@thomasjm

Copy link
Copy Markdown
Author

Hi @cosmos72, any chance I could get your attention here? Thanks!

@cosmos72

Copy link
Copy Markdown
Member

Hi @thomasjm,

I've recently updated gomacro with initial support for *types.Alias. I"ll try to find the time for updating gophernotes too

thomasjm added a commit to codedownio/nixpkgs that referenced this pull request Sep 1, 2026
The pinned gomacro predates Go generics, so the kernel panicked with
"Converter.Type(): unsupported types.Type: *types.TypeParam" on startup and the
package failed to build. Upstream has not tagged since 0.7.5 and master carries
several interpreter fixes, so move to master and apply the open dependency bump
from gopherdata/gophernotes#268 on top.
@cosmos72 cosmos72 mentioned this pull request Sep 1, 2026
@cosmos72

cosmos72 commented Sep 1, 2026

Copy link
Copy Markdown
Member

I've created pull request #270 as a replacement for this pull request.

Any objection about sticking to go toolchain 1.23.0, and to slightly older dependencies?

@thomasjm

thomasjm commented Sep 1, 2026

Copy link
Copy Markdown
Author

Looks fine to me, I verified it builds against current Nixpkgs Go 1.26.

nixos-cuda-channel-updater Bot pushed a commit to nixos-cuda/nixpkgs that referenced this pull request Sep 2, 2026
The pinned gomacro predates Go generics, so the kernel panicked with
"Converter.Type(): unsupported types.Type: *types.TypeParam" on startup and the
package failed to build. Upstream has not tagged since 0.7.5 and master carries
several interpreter fixes, so move to master and apply the open dependency bump
from gopherdata/gophernotes#268 on top.

(cherry picked from commit ed6f54a)
onny pushed a commit to onny/nixpkgs that referenced this pull request Sep 2, 2026
The pinned gomacro predates Go generics, so the kernel panicked with
"Converter.Type(): unsupported types.Type: *types.TypeParam" on startup and the
package failed to build. Upstream has not tagged since 0.7.5 and master carries
several interpreter fixes, so move to master and apply the open dependency bump
from gopherdata/gophernotes#268 on top.

(cherry picked from commit ed6f54a)
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