question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding first registry in CLI erases the default one

See original GitHub issue

Describe 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?

  1. Install quarkus afresh or remove/rename file ~/.quarkus/config.yaml
  2. Check default registry.
$ quarkus registry list
Configured Quarkus extension registries:
registry.quarkus.io
  1. Check existing extensions.
$ quarkus ext list | wc -l
920
  1. Add non-default registry: quarkus registry add registry.quarkus.redhat.com
  2. 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)
  1. 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:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
gsmetcommented, Jan 1, 2022

I think we could just add a warning when executing quarkus registry add registry.quarkus.redhat.com if there is no registry set.

1reaction
maxandersencommented, Jan 24, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found