Skip to content

Commit

Permalink
interp: Add wasip1 to known OS list
Browse files Browse the repository at this point in the history
Adds `wasip1` to known OS list, introduced in golang/go#58141.

Without this change, `yaegi extract` may fail on Go 1.21 with the following message:
```
type-checking package "time" failed (<GOROOT>/src/time/zoneinfo_wasip1.go:8:5: platformZoneSources redeclared in this block)
```
  • Loading branch information
dennwc committed Sep 26, 2023
1 parent f5b5481 commit da27c4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions interp/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ var knownOs = map[string]bool{
"openbsd": true,
"plan9": true,
"solaris": true,
"wasip1": true,
"windows": true,
}

Expand Down

0 comments on commit da27c4f

Please sign in to comment.