# Works locally but doesn’t pass the tests?(Build your own shell)Golang

**URL:** https://forum.codecrafters.io/t/works-locally-but-doesn-t-pass-the-tests-build-your-own-shell-golang/608
**Category:** Challenges
**Tags:** challenge:shell
**Created:** [June 2, 2024, 11:05pm UTC](https://forum.codecrafters.io/t/works-locally-but-doesn-t-pass-the-tests-build-your-own-shell-golang/608 "2024-06-02T23:05:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![elohim18bolts](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/elohim18bolts/32/554_2.png) [@elohim18bolts](https://forum.codecrafters.io/u/elohim18bolts)
#### Post date: [June 2, 2024, 11:05pm UTC](https://forum.codecrafters.io/t/works-locally-but-doesn-t-pass-the-tests-build-your-own-shell-golang/608/1 "2024-06-02T23:05:47Z")

</div>

When running the tests on task 6 in the instructions the tester will send the command:

```auto
PATH="/usr/bin:/usr/local/bin" ./your_shell.sh

```

and when I run it locally it’s working but on git push the logs show:

```auto
[tester::#MG5] Running ./your_shell.sh

```

with not `PATH` variable set.

---

<div class="post-metadata">

### Author: ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)
#### Post date: [June 3, 2024, 7:34pm UTC](https://forum.codecrafters.io/t/works-locally-but-doesn-t-pass-the-tests-build-your-own-shell-golang/608/2 "2024-06-03T19:34:57Z")

</div>

@elohim18bolts ah, we’ll improve the logs here to mention that we’re setting PATH. It is set here, the tester just isn’t logging it out.

---

<div class="post-metadata">

### Author: ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)
#### Post date: [June 18, 2024, 12:02pm UTC](https://forum.codecrafters.io/t/works-locally-but-doesn-t-pass-the-tests-build-your-own-shell-golang/608/3 "2024-06-18T12:02:18Z")

</div>

Haven’t heard much of this from elsewhere, so going to leave logs as-is. Will keep an eye open for similar reports!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)
#### Post date: [June 23, 2024, 12:02pm UTC](https://forum.codecrafters.io/t/works-locally-but-doesn-t-pass-the-tests-build-your-own-shell-golang/608/4 "2024-06-23T12:02:56Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
