You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I execute aqua i -l, I get a registry isn't found error when the aqua.yaml specifies a package that uses a local registry. The local registry has already been declared in the top-most aqua.yaml file, but it is not being detected by the command. Ideally, since aqua knows about the list of configuration files (via aqua info), instead of registry isn't found, it should try and find the registry in one of the other configuration files (i.e. the root configuration), and then try again with the installation.
If I am in proj1 and run the aqua i -l command, it should create shims for all packages found in the list of configuration files.
The monorepo/.aqua/aqua.yaml file looks like this:
---
# aqua - Declarative CLI Version Manager# https://aquaproj.github.io/# checksum:# enabled: true# require_checksum: true# supported_envs:# - allregistries:
- type: standardref: v4.204.0 # renovate: depName=aquaproj/aqua-registry
- name: localtype: localpath: aqua-registry.yaml # Relative path from aqua.yamlpackages:
- name: github.com/stefanlogue/[email protected]registry: local
The monorepo/.aqua/aqua-registry.yaml file looks like this:
packages:
- type: go_installpath: github.com/stefanlogue/meteordescription: A highly configurable CLI tool for writing conventional commitsversion_source: github_tag
- type: go_installpath: github.com/wailsapp/wails/v2/cmd/wailsdescription: Create beautiful applications using Goversion_source: github_tag
The monorepo/src/proj1/.aqua/aqua.yaml looks like this:
---
# aqua - Declarative CLI Version Manager# https://aquaproj.github.io/# checksum:# enabled: true# require_checksum: true# supported_envs:# - allregistries:
- type: standardref: v4.204.0 # renovate: depName=aquaproj/aqua-registrypackages:
- name: github.com/wailsapp/wails/v2/cmd/[email protected]registry: local
An aqua i -l in proj1 should result in two packages being installed: meteor and wails. However, the following error occurs:
❯ cd src/proj1
❯ aqua i -l
ERRO[0000] install the package aqua_version=2.30.0 env=windows/amd64 error="registry isn't found" package_name=github.com/wailsapp/wails/v2/cmd/wails package_version=v2.9.1 program=aqua registry=local
Why is the feature needed?
In a monorepo, it would make sense to have a local registry specified once in the root of the monorepo, that can be used by other projects in the monorepo. The workarounds are good enough, but I think the experience can be improved.
Workaround
A few workarounds exist:
Use a build step to copy the monorepo registry file to $HOME and reference it explicitly
Use a build step to copy the monorepo registry file to the subproject and reference it explicitly
Reference the monorepo registry file explicitly using a relative path
---
# aqua - Declarative CLI Version Manager# https://aquaproj.github.io/# checksum:# enabled: true# require_checksum: true# supported_envs:# - allregistries:
- type: standardref: v4.204.0 # renovate: depName=aquaproj/aqua-registrypackages:
- name: github.com/wailsapp/wails/v2/cmd/[email protected]registry: local # the local registry is already declared in the root aqua yaml file
Note
No response
The text was updated successfully, but these errors were encountered:
I think I misunderstood the purpose of the configuration file list. I now realize it is only intended for inheriting packages, not so much for inheriting configuration.
Feature Overview
The configuration search order is specified here: https://aquaproj.github.io/docs/reference/config/#configuration-file-path
When I execute
aqua i -l
, I get aregistry isn't found
error when theaqua.yaml
specifies a package that uses a local registry. The local registry has already been declared in the top-mostaqua.yaml
file, but it is not being detected by the command. Ideally, since aqua knows about the list of configuration files (via aqua info), instead ofregistry isn't found
, it should try and find the registry in one of the other configuration files (i.e. the root configuration), and then try again with the installation.Consider the following monorepo setup:
If I am in
proj1
and run theaqua i -l
command, it should create shims for all packages found in the list of configuration files.The
monorepo/.aqua/aqua.yaml
file looks like this:The
monorepo/.aqua/aqua-registry.yaml
file looks like this:The
monorepo/src/proj1/.aqua/aqua.yaml
looks like this:An
aqua i -l
inproj1
should result in two packages being installed:meteor
andwails
. However, the following error occurs:Why is the feature needed?
In a monorepo, it would make sense to have a local registry specified once in the root of the monorepo, that can be used by other projects in the monorepo. The workarounds are good enough, but I think the experience can be improved.
Workaround
A few workarounds exist:
Example
aqua.yaml
:Example Code
$ aqua i -l
Configuration
Note
No response
The text was updated successfully, but these errors were encountered: