Skip to content

Commit a2b56f5

Browse files
ofauchondeadprogram
authored andcommitted
docs: Warning on building tinygo within go workspaces.
1 parent 56bd0f9 commit a2b56f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/docs/guides/build/_index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ You should also check if there's a remaining `tinygo` executable in your path an
5959
## Repository cloning (before build)
6060
Start with getting the source code. On Windows, you might want to install the [build dependencies](#build-dependencies) first.
6161

62+
***Warning: Some users have encountered issues when the TinyGo source path is located within a Go workspace (indicated by the presence of a go.work file in a parent directory).
63+
These issues may result in runtime errors such as:
64+
panic: unknown type: any
65+
To avoid this, try building TinyGo from a directory that is outside the scope of the Go workspace.***
66+
67+
6268
```shell
6369
git clone https://github.com/tinygo-org/tinygo.git
6470
cd tinygo

0 commit comments

Comments
 (0)