quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.82k stars 2.69k forks source link

quarkus cli removing plugins when not on network #38529

Open maxandersen opened 9 months ago

maxandersen commented 9 months ago

Describe the bug

I had quarkus kill installed and when running quarkis cli on my laptop while offline quarkus cli did this:

 quarkus kill -p 8080
[WARN] 🔥  The following plugins were found in the catalog: [/Users/manderse/.quarkus/cli/plugins/quarkus-cli-catalog.json] but are no longer available: [kill].
The unavailable plugins will be purged. A backup of the catalog will be saved at: [/Users/manderse/.quarkus/cli/plugins/quarkus-cli-catalog.json.bkp].
Looking for the newly published extensions in registry.quarkus.io
[ERROR] ❗  Command kill is missing and can't be installed.
[ERROR] ❗  Unmatched arguments from index 0: 'kill', '-p', '8080'
Did you mean: quarkus build?

where it removed quarkus kill command because I was offline...despite I had cached version of it available.

{
  "version" : "v1",
  "lastUpdate" : "01/02/2024 13:07:57",
  "plugins" : {
    "kill" : {
      "name" : "kill",
      "type" : "jbang",
      "location" : "quarkus-kill@quarkusio",
      "description" : null,
      "inProjectCatalog" : false
    }
  }
}

is what it backed up.

Expected behavior

1) Dont remove plugins just because I'm without internet. 2) at least ask and list why - and then let me accept I'm offline.... 3) why even do this check everytime ?

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

quarkus-bot[bot] commented 9 months ago

/cc @ebullient (cli), @quarkusio/devtools (jbang)

maxandersen commented 6 months ago

@iocanel this still seem to happen.

iocanel commented 2 months ago

@maxandersen: I cant reproduce this issue with 3.13 and also the latest main.