# std: add compile error when using \`std.os.getenv\` on the wasi target · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/69982339ed3c35df890f205fada0bb5772abdb63)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 69982339ed3c35df890f205fada0bb5772abdb63

Requested commit: 69982339ed3c35df890f205fada0bb5772abdb63

Commit: 69982339ed3c35df890f205fada0bb5772abdb63

Tree: b736d6b26a3fd2afab4721f5783b0bbda2f36839

Author: Rafael Fernández López

Committer: Veikka Tuominen

## Message

```
std: add compile error when using `std.os.getenv` on the wasi target

`std.process.getEnvMap` or `std.process.getEnvVarOwned` should be used
instead, requiring allocation.

```

## Parents

- [742030a8f27190ce36fd7b240c2def6774dfdb63](https://git.cafe/gitcafe/zig/commit/742030a8f27190ce36fd7b240c2def6774dfdb63?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/69982339ed3c35df890f205fada0bb5772abdb63?format=markdown)
