Skip to content

How to write and test changes to standard libraries? #4906

Answered by aykevl
hb9cwp asked this question in Q&A
Discussion options

You must be logged in to vote

This is all a bit confusing, I agree.

There are 3 different package roots:

  • The original Go GOROOT. On my system, that is /usr/local/go1.24.0.
  • The TINYGOROOT, which is the TinyGo source tree. On my system, that is /home/ayke/src/tinygo/tinygo.
  • The cached GOROOT, which is a directory tree that has the two roots above merged. On my system, that is /home/ayke/.cache/tinygo/goroot-c063e1a94e4335527097e6c503b434aa3eb8dd4a486a3280294b3e609612e125.

What you are referring to in the documentation is the cached GOROOT, not TINYGOROOT. The existing phrasing is correct, tough the initial "The GOROOT directory in TinyGo..." refers to the cached GOROOT which might be confusing.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@aykevl
Comment options

Answer selected by hb9cwp
@aykevl
Comment options

@hb9cwp
Comment options

@hb9cwp
Comment options

@aykevl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants