You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because generated Go code is written to the filesystem and committed, this means that updating the version of wasm-tools-go can create (noisy) diffs for otherwise unchanged files.
Second, this is only available when examining the source code.
What if we implemented something for each generated package along the lines of Go’s debug.ReadBuildInfo(), but for generated Go packages? Thinking something along the lines of:
package cm
// BuildInfo contains debugging information about the WIT package// and toolchain that generated a Go package.typeBuildInfostruct {
WITPackagestring// "wasi:http"WITVersionstring// "0.2.0"Generatorstring// "wit-bindgen-go"GeneratorVersionstring// "0.3.1"
}
Then each generated Go package could have a build.go file with a single export func ReadBuildInfo() cm.BuildInfo.
I like the idea of reducing noisy diffs. How will this impact our release process? Do we need to bump up this version whenever we release a new version?
The release CI knows the tag version. Maybe BuildInfo could pick up the tag version at linking time and populate the GeneratorVersion field?
Essentially, replace
to
The text was updated successfully, but these errors were encountered: