From da27c4fbc25f1023295585b8c818e3b34e6149b9 Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Wed, 27 Sep 2023 01:22:05 +0300 Subject: [PATCH] interp: Add wasip1 to known OS list 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 (/src/time/zoneinfo_wasip1.go:8:5: platformZoneSources redeclared in this block) ``` --- interp/build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/interp/build.go b/interp/build.go index 85c1ac908..4e5e8871d 100644 --- a/interp/build.go +++ b/interp/build.go @@ -182,6 +182,7 @@ var knownOs = map[string]bool{ "openbsd": true, "plan9": true, "solaris": true, + "wasip1": true, "windows": true, }