Skip to content

Commit e83a569

Browse files
committed
mention overrides in README.md
Signed-off-by: Markus Theil <[email protected]>
1 parent 15b0c4c commit e83a569

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,15 @@ Parameter example:
376376
$ npins add gitlab my-org my-private-repo --token H_BRqzV3NcaPvXcYs2Xf
377377
```
378378

379+
### Using local sources during development
380+
381+
While npins allows you to pin dependencies in reproducible fashion, it is often desirable to allow fast impure iterations during development.
382+
Npins supports local overrides for this.
383+
If your `sources.json` contains a source named `abc`, you can e.g. develop from `/abc` by exposing the environment variable `NPINS_OVERRIDE_abc=/abc`.
384+
Please note, that only alphanumerical characters and _ are allow characters in overriden sources.
385+
All other characters are converted to _.
386+
Also check, that you are building impure, if you are wondering, why these overrides are maybe not becoming active.
387+
379388
## Contributing
380389

381390
Contributions to this project are welcome in the form of GitHub Issues or PRs. Please consider the following before creating PRs:

README.md.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,15 @@ Parameter example:
224224
$ npins add gitlab my-org my-private-repo --token H_BRqzV3NcaPvXcYs2Xf
225225
```
226226

227+
### Using local sources during development
228+
229+
While npins allows you to pin dependencies in reproducible fashion, it is often desirable to allow fast impure iterations during development.
230+
Npins supports local overrides for this.
231+
If your `sources.json` contains a source named `abc`, you can e.g. develop from `/abc` by exposing the environment variable `NPINS_OVERRIDE_abc=/abc`.
232+
Please note, that only alphanumerical characters and _ are allow characters in overriden sources.
233+
All other characters are converted to _.
234+
Also check, that you are building impure, if you are wondering, why these overrides are maybe not becoming active.
235+
227236
## Contributing
228237

229238
Contributions to this project are welcome in the form of GitHub Issues or PRs. Please consider the following before creating PRs:

0 commit comments

Comments
 (0)