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

fix: install faas-cli as a seperate CI step #269

Merged

Conversation

LucasRoesler
Copy link
Member

Description

Run faas-cli install in it's own step to because this will install it
into the users PATH for us and the setup/verify script will
intelligently skip the faas-cli install step. This avoids a bug where
the script assumes that the cli was installed into the tmp dir instead
of the PATH.

Apparently, the runner now has enough permissions to do this, but it couldn't before.

Motivation and Context

  • I have raised an issue to propose this change (required)

None, this was requested in Slack

Which issue(s) this PR fixes

NA

How Has This Been Tested?

The CI flow passed correctly in my fork.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Version change (see: Impact to existing users)

Impact to existing users

None, this just fixes the CI process

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Run faas-cli install in it's own step to because this will install it
into the users PATH for us and the setup/verify script will
intelligently skip the faas-cli install step. This avoids a bug where
the script assumes that the cli was installed into the tmp dir instead
of the PATH.

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Copy link
Member

@alexellis alexellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@alexellis alexellis merged commit 655262d into openfaas:master Oct 21, 2021
@alexellis
Copy link
Member

Thank you for the quick fix @LucasRoesler

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

Successfully merging this pull request may close these issues.

None yet

2 participants