Adding first registry in CLI erases the default one
See original GitHub issueDescribe the bug
By default, registry list in CLI contains a default registry registry.quarkus.io
and there is an option to add new registries. Although, if user adds a new registry, e.g. registry.quarkus.redhat.com
, then the default registry will be silently removed from the list and became inaccessible.
Expected behavior
Default registry stays in the list, registries are never removed without explicit user request.
Actual behavior
Default registry is removed from the list.
How to Reproduce?
- Install quarkus afresh or remove/rename file ~/.quarkus/config.yaml
- Check default registry.
$ quarkus registry list
Configured Quarkus extension registries:
registry.quarkus.io
- Check existing extensions.
$ quarkus ext list | wc -l
920
- Add non-default registry:
quarkus registry add registry.quarkus.redhat.com
- Check registry list:
$ quarkus registry list
Configured Quarkus extension registries:
registry.quarkus.redhat.com #registry.quarkus.io is not in the list
(Read from ~/.quarkus/config.yaml)
- Check existing extensions.
$ quarkus ext list | wc -l
170 # at least some extensions are not accessible any more
Output of uname -a
or ver
5.14.17-201.fc34.x86_64
Output of java -version
Java version: 11.0.13, vendor: Eclipse Adoptium
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.5.1.Final
Build tool (ie. output of mvnw --version
or gradlew --version
)
Apache Maven 3.8.4
Additional information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Replacing registry default value from command line
In the key there is a single value called (Default) of type REG_SZ . This value is not set. I've tried using REG...
Read more >Use command-line options to edit registries with regedit.exe
From the Edit menu, you can create a new entry in the registry, check the permissions for the selection, delete or rename the...
Read more >How to edit the registry from the command line - Computer Hope
reg, type the following command. The file hope. reg could contain the commands necessary to add and remove registry values. Below are examples ......
Read more >Run and RunOnce Registry Keys - Win32 apps - Microsoft Learn
Register programs to run by adding entries of the form description-string=commandline. You can write multiple entries under a key.
Read more >create-repository — AWS CLI 1.27.27 Command Reference
First time using the AWS CLI? ... If you do not specify a registry, the default registry is assumed. ... Example 1: To...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we could just add a warning when executing
quarkus registry add registry.quarkus.redhat.com
if there is no registry set.The config file can be present without a registry in it.
The suggestion is to print a warning if no registry is already set. i.e. the list of registries are empty in the config file.