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

https://cli.openfaas.com script not working #844

Closed
Skikepok opened this issue Nov 18, 2020 · 3 comments
Closed

https://cli.openfaas.com script not working #844

Skikepok opened this issue Nov 18, 2020 · 3 comments

Comments

@Skikepok
Copy link

The installation command curl -sSL https://cli.openfaas.com | sh does not work anymore (it worked an hour ago).

Expected Behaviour

This script is supposed to install the faas-cli script on the machine

Current Behaviour

Running the command currently fails with the following error:

$ curl -sSL https://cli.openfaas.com | sh
Finding latest version from GitHub
0.12.16
Downloading package https://github.com/openfaas/faas-cli/releases/download/0.12.16/faas-cli as /tmp/faas-cli
sha256sum: can't open 'bin/faas-cli': No such file or directory
sha256sum: WARNING: 1 of 1 computed checksums did NOT match
Binary checksum didn't match. Exiting

Steps to Reproduce (for bugs)

  1. Run the command curl -sSL https://cli.openfaas.com | sh

Context

I'm using that command to install faas-cli on my gitlab CI/CD and suddenly it stopped working

Your Environment

  • Operating System and version: Ubuntu 20;04
@alexellis
Copy link
Member

Thanks for reporting this. I'm taking a look.

My initial feeling is that our shasum file now uses the "bin/faas-cli" format where before it used "faas-cli", which is causing the 404 error.

@alexellis
Copy link
Member

Thanks for reporting the issue.

This is fixed by:

9e3c15e Move back out of ci folder after hashgen by @alexellis
a1b8919 Update hashgen not to inject bin in the path by @alexellis

I would recommend not using a bash script to download faas-cli in production, but instead pinning to a specific version and upgrading that periodically.

@alexellis
Copy link
Member

space-mini:faas-cli alex$ curl -sSL https://cli.openfaas.com | sudo sh
Password:
Finding latest version from GitHub
0.12.18
Downloading package https://github.com/openfaas/faas-cli/releases/download/0.12.18/faas-cli-darwin as /tmp/faas-cli-darwin
Download complete.

Running with sufficient permissions to attempt to move faas-cli to /usr/local/bin
New version of faas-cli installed to /usr/local/bin
  ___                   _____           ____
 / _ \ _ __   ___ _ __ |  ___|_ _  __ _/ ___|
| | | | '_ \ / _ \ '_ \| |_ / _` |/ _` \___ \
| |_| | |_) |  __/ | | |  _| (_| | (_| |___) |
 \___/| .__/ \___|_| |_|_|  \__,_|\__,_|____/
      |_|

CLI:
 commit:  9e3c15ef3ad7bd7cceb0cd577144aebb50c6681c
 version: 0.12.18
space-mini:faas-cli alex$ 

I would encourage you and team to look into: Get the most out of OpenFaaS as an end-user

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants