Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

hcl2json: support new location of wasm_exec.js #3912

@nikolaymatrosov

Description

@nikolaymatrosov

Expected Behavior

I can build packages

Actual Behavior

With go 1.24 installed I received File $GOROOT/misc/wasm/wasm_exec.js does not exist! error.

Steps to Reproduce

  1. Install go 1.24
  2. Checkout repo
  3. run yarn install && yarn build

Versions

cdktf debug
language: go
cdktf-cli: 0.0.0
node: v20.19.3
cdktf: github.com/hashicorp/terraform-cdk-go/cdktf
constructs: 10.4.2
jsii: 1.112.0
terraform: 1.5.7
arch: arm64
os: darwin 24.5.0
go: go version go1.24.2 darwin/arm64

Providers

No response

Gist

No response

Possible Solutions

Since go1.24 the wasm_exec.js is located not in the misc but in the lib folder.
golang/go#69989

prebuild.sh searches for it only in one location. I suggest add the new one so I can use newer go versions.

Workarounds

No response

Anything Else?

No response

References

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewUn-triaged issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions