-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change mirror address configuration to project-local JSON
Environment variables are prone to shell injection attacks, especially on build servers that many people may have access to. Changing address in a file requires an explicit command that is supposedly under the control of a trusted developer.
- Loading branch information
Showing
4 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,15 +45,3 @@ The contents of the Wrap database are tracked in git repos of the | |
[Mesonbuild project](https://github.com/mesonbuild). The actual | ||
process is simple and described in [submission | ||
documentation](Adding-new-projects-to-wrapdb.md). | ||
|
||
## Self-hosted Wrap database | ||
|
||
If for whatever reason you want to use self-hosted or proxied Wrap database *(since 1.X.X)* you may override server address with the `MESON_WRAPDB_MIRROR` environment variable: | ||
|
||
```console | ||
$ export MESON_WRAPDB_MIRROR=user:[email protected]:8080 | ||
$ meson wrap update-db | ||
$ meson wrap install zlib | ||
``` | ||
|
||
You will be limited to the wraps available on the mirror. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,3 +96,16 @@ but available in WrapDB will automatically be downloaded. | |
|
||
Automatic fetch of WrapDB subprojects can be disabled by removing the file | ||
`subprojects/wrapdb.json`, or by using `--wrap-mode=nodownload`. | ||
|
||
## Self-hosted Wrap database | ||
|
||
If for whatever reason you want to use self-hosted or proxied Wrap database *(since 1.X.X)* you may set mirror address to be used for the workspace: | ||
|
||
```console | ||
$ meson wrap set-db-mirror user:[email protected]:8080 | ||
$ meson wrap update-db | ||
$ meson wrap install zlib | ||
``` | ||
|
||
You will be limited to the wraps available on the mirror, only one source is used at a time. | ||
The address is stored in `subprojects/wrapdb-mirrors.json`, remove the file to use upstream address. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters