-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update tutorial * chore: update yarn.lock --------- Co-authored-by: aquaproj-aqua[bot] <127701725+aquaproj-aqua[bot]@users.noreply.github.com>
- Loading branch information
1 parent
98db185
commit 043a222
Showing
9 changed files
with
148 additions
and
153 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
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 |
---|---|---|
|
@@ -6,43 +6,29 @@ sidebar_position: 500 | |
|
||
aqua supports changing the tool versions per project. | ||
|
||
```console | ||
$ mkdir foo bar | ||
$ vi foo/aqua.yaml | ||
$ vi bar/aqua.yaml | ||
``` | ||
|
||
```yaml | ||
# foo/aqua.yaml | ||
registries: | ||
```bash | ||
mkdir foo bar | ||
echo -n 'registries: | ||
- type: standard | ||
ref: v3.90.0 # renovate: depName=aquaproj/aqua-registry | ||
ref: v4.79.0 # renovate: depName=aquaproj/aqua-registry | ||
packages: | ||
- name: cli/[email protected] | ||
``` | ||
```yaml | ||
# bar/aqua.yaml | ||
registries: | ||
' > foo/aqua.yaml | ||
echo -n 'registries: | ||
- type: standard | ||
ref: v3.90.0 # renovate: depName=aquaproj/aqua-registry | ||
ref: v3.79.0 # renovate: depName=aquaproj/aqua-registry | ||
packages: | ||
- name: cli/[email protected] | ||
' > bar/aqua.yaml | ||
``` | ||
|
||
```console | ||
$ cd foo | ||
$ gh version # In foo, the version is v2.1.0. | ||
gh version 2.1.0 (2021-10-14) | ||
https://github.com/cli/cli/releases/tag/v2.1.0 | ||
|
||
$ cd ../bar | ||
$ gh version # In foo, the version is v2.0.0. | ||
INFO[0000] download and unarchive the package aqua_version=1.19.2 package_name=cli/cli package_version=v2.0.0 program=aqua registry=standard | ||
gh version 2.0.0 (2021-08-24) | ||
https://github.com/cli/cli/releases/tag/v2.0.0 | ||
```bash | ||
cd foo | ||
gh version # In foo, the version is v2.1.0. | ||
cd ../bar | ||
gh version # In bar, the version is v2.0.0. | ||
``` | ||
|
||
The version of `gh` is changed seamlessly. | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ sidebar_position: 550 | |
# aqua.yaml | ||
registries: | ||
- type: standard | ||
ref: v3.90.0 # renovate: depName=aquaproj/aqua-registry | ||
ref: v4.79.0 # renovate: depName=aquaproj/aqua-registry | ||
|
||
packages: | ||
- name: cli/[email protected] | ||
|
@@ -20,7 +20,7 @@ packages: | |
# bar/aqua.yaml | ||
registries: | ||
- type: standard | ||
ref: v3.90.0 # renovate: depName=aquaproj/aqua-registry | ||
ref: v4.79.0 # renovate: depName=aquaproj/aqua-registry | ||
|
||
packages: | ||
- name: cli/[email protected] | ||
|
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ $ export AQUA_GLOBAL_CONFIG=${AQUA_GLOBAL_CONFIG:-}:${XDG_CONFIG_HOME:-$HOME/.co | |
```yaml | ||
registries: | ||
- type: standard | ||
ref: v3.90.0 # renovate: depName=aquaproj/aqua-registry | ||
ref: v4.79.0 # renovate: depName=aquaproj/aqua-registry | ||
|
||
packages: | ||
- name: cli/[email protected] | ||
|
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
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 |
---|---|---|
|
@@ -4,21 +4,24 @@ sidebar_position: 300 | |
|
||
# Lazy Install | ||
|
||
Let's change the tool version. | ||
Let's change the version of GitHub CLI and execute it. | ||
|
||
```console | ||
```bash | ||
# Change cli/cli version to v2.1.0 | ||
$ sed -i "s|cli/cli@.*|cli/[email protected]|" aqua.yaml | ||
sed -i "s|cli/cli@.*|cli/[email protected]|" aqua.yaml | ||
gh version | ||
``` | ||
|
||
```console | ||
$ gh version | ||
INFO[0000] download and unarchive the package aqua_version=1.19.2 package_name=cli/cli package_version=v2.1.0 program=aqua registry=standard | ||
INFO[0000] download and unarchive the package aqua_version=2.16.4 env=linux/arm64 exe_name=gh package_name=cli/cli package_version=v2.1.0 program=aqua registry=standard | ||
gh version 2.1.0 (2021-10-14) | ||
https://github.com/cli/cli/releases/tag/v2.1.0 | ||
``` | ||
|
||
You find that `cli/[email protected]` is installed automatically. | ||
You don't have to run `aqua i` explicitly. | ||
We call this feature as `Lazy Install`. | ||
We call this feature `Lazy Install`. | ||
|
||
Note that `Lazy Install` doesn't work if the symbolic link isn't created in `${AQUA_ROOT_DIR}/bin` yet. | ||
|
||
|
Oops, something went wrong.