Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc enable points to non-existing pipeline #116

Open
rhagarty opened this issue Mar 25, 2021 · 11 comments
Open

oc enable points to non-existing pipeline #116

rhagarty opened this issue Mar 25, 2021 · 11 comments
Assignees
Labels
bug Something isn't working org rename Result of renaming the git organization

Comments

@rhagarty
Copy link

$ oc enable
Looking up pipelines from repository: https://ibm-garage-cloud.github.io/garage-pipelines/
Error loading pipeline index from https://ibm-garage-cloud.github.io/garage-pipelines/
@bwoolf1
Copy link
Contributor

bwoolf1 commented Mar 25, 2021

The bug is in enable.ts, line 14:

default: 'https://ibm-garage-cloud.github.io/garage-pipelines/'

With the new org name, looks like the repo's URL is now https://github.com/cloud-native-toolkit/garage-pipelines. So I believe you need to publish it as https://cloud-native-toolkit.github.io/garage-pipelines/ and then update enable.ts with the new URL.

Also, the repo's GitHub page lists the old URL in the About section, https://ibm-garage-cloud.github.io/garage-pipelines/. It'd be good to update that as well.

@seansund seansund self-assigned this Mar 26, 2021
@seansund
Copy link
Member

I had missed this one yesterday. Will be fixed shortly

@seansund seansund added bug Something isn't working org rename Result of renaming the git organization labels Mar 26, 2021
@seansund
Copy link
Member

The workaround for the time being would be to pass the correct repo url as a parameter to the command -

oc enable --repo https://cloud-native-toolkit.github.io/garage-pipelines/

@bwoolf1
Copy link
Contributor

bwoolf1 commented Mar 26, 2021

Thanks. We tried that workaround yesterday, but https://cloud-native-toolkit.github.io/garage-pipelines/ hasn't been published, so that URL gives a 404 error. I tried it again now and it still hasn't been published. So that workaround doesn't work.

@bwoolf1
Copy link
Contributor

bwoolf1 commented Mar 26, 2021

What is the command to reinstall the CLI now?

The instructions on how to install the CLI need to be updated. These pages use an NPM package name that has changed:

Looks like the NPM package with the new name hasn't been republished.

Also, the ibm-garage-cloud-cli repo should probably be renamed to cloud-native-toolkit-cli.

The script for installing the CLIs, shell.cloudnativetoolkit.dev, probably needs to be updated to use the new IGC install command.

So what is the CLI install command now?


The docs say to install by running:

npm i -g @ibmgaragecloud/ibm-garage-cloud-cli

But that package doesn't exist anymore:

$ igc --version
1.16.3

$ igc enable
Looking up pipelines from repository: https://ibm-garage-cloud.github.io/garage-pipelines/
Error loading pipeline index from https://ibm-garage-cloud.github.io/garage-pipelines/

$ npm i -g @ibmgaragecloud/ibm-garage-cloud-cli
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ibmgaragecloud%2fibm-garage-cloud-cli - Not found
npm ERR! 404
npm ERR! 404  '@ibmgaragecloud/ibm-garage-cloud-cli@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

I assume the package is now called @cloudnativetoolkit/cloud-native-toolkit-cli, but that doesn't work either:

$ npm i -g @cloudnativetoolkit/cloud-native-toolkit-cli
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@cloudnativetoolkit%2fcloud-native-toolkit-cli - Not found
npm ERR! 404
npm ERR! 404  '@cloudnativetoolkit/cloud-native-toolkit-cli@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

The repo is named cloud-native-toolkit/ibm-garage-cloud-cli, but that package name doesn't work either:

$ npm i -g @cloudnativetoolkit/ibm-garage-cloud-cli
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@cloudnativetoolkit%2fibm-garage-cloud-cli - Not found
npm ERR! 404
npm ERR! 404  '@cloudnativetoolkit/ibm-garage-cloud-cli@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

So I'm stumped on how to reinstall this thing.

@mjperrins
Copy link
Member

can your add a PR ?

@seansund
Copy link
Member

seansund commented Mar 27, 2021 via email

@seansund
Copy link
Member

seansund commented Mar 27, 2021 via email

@bwoolf1
Copy link
Contributor

bwoolf1 commented Mar 27, 2021

The command to install the cli is still npm i -g @ibmgaragecloud/ibm-garage-cloud-cli

Doesn't seem to be working. Have you tried? I get this:

$ npm i -g @ibmgaragecloud/ibm-garage-cloud-cli
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@ibmgaragecloud%2fibm-garage-cloud-cli - Not found
npm ERR! 404
npm ERR! 404  '@ibmgaragecloud/ibm-garage-cloud-cli@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)

@bwoolf1
Copy link
Contributor

bwoolf1 commented Mar 27, 2021

The right command is npm i -g @ibmgaragecloud/cloud-native-toolkit-cli. (Thanks, Carlos.)

$ npm i -g @ibmgaragecloud/cloud-native-toolkit-cli
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '[email protected]',
npm WARN EBADENGINE   required: { node: '^14 || ^12 || ^10' },
npm WARN EBADENGINE   current: { node: 'v15.9.0', npm: '7.5.3' }
npm WARN EBADENGINE }
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 250 packages, and audited 251 packages in 9s

35 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

$ igc --version
1.16.4

@bwoolf1
Copy link
Contributor

bwoolf1 commented Mar 27, 2021

Looks like enable works now:

$ igc --version
1.16.4

$ igc enable
Looking up pipelines from repository: https://cloud-native-toolkit.github.io/garage-pipelines/
? Which pipeline should be enabled? (Use arrow keys)
❯ nodejs
  java-maven
  java-gradle
  appmod-liberty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working org rename Result of renaming the git organization
Projects
None yet
Development

No branches or pull requests

4 participants