Skip to content

Conversation

@dkegel-fastly
Copy link
Contributor

@dkegel-fastly dkegel-fastly commented Feb 3, 2022

The problem with TestClearenv is that it assumes os.Environ() returns a copy of the environment, but in tinygo, it returns pointers to the live environment. Thus in tinygo, os.Environ() can go invalid the moment any environment variable is deleted.

Probably need to decide whether this behavior is ok, and if so, rewrite that test to call os.Environ() after each deletion, or something.

See #2646

@deadprogram
Copy link
Member

Thanks @dkegel-fastly merging as the most pragmatic for now.

@deadprogram deadprogram merged commit e9d9ae8 into tinygo-org:dev Feb 20, 2022
dgryski added a commit to dgryski/tinygo that referenced this pull request Feb 22, 2022
aykevl pushed a commit that referenced this pull request Mar 1, 2022
deadprogram pushed a commit that referenced this pull request Apr 7, 2022
deadprogram pushed a commit that referenced this pull request Apr 11, 2022
ardnew pushed a commit to ardnew/tinygo that referenced this pull request Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants