Commit 45f87c4
committed
Explain: Fix passthrough of environment to Copilot CLI.
This bug caused errors of the form:
```
env: 'node': No such file or directory
```
To appear when Node was installed at a non-distro path (i.e. installed manually
or using NVM, rather than at `/usr/bin/node` by the distro's package manager).
This occurred because the `#!/usr/bin/env node` at the start of Copilot's
`index.js` couldn't guess a PATH to node. With a distro-based install, env will
sometimes guess standard paths for you.
This was always a bug in my code but didn't manifest until we saw the right host
environment.1 parent b413935 commit 45f87c4
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
0 commit comments