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

Installation instructions on MacOS doesn't work with zsh #131

Closed
tomekpapiernik opened this issue Jun 17, 2019 · 5 comments
Closed

Installation instructions on MacOS doesn't work with zsh #131

tomekpapiernik opened this issue Jun 17, 2019 · 5 comments
Assignees
Labels
area/cli Related to all activities around CLI area/documentation Issues or PRs related to documentation kind/bug Categorizes issue or PR as related to a bug.

Comments

@tomekpapiernik
Copy link

Description

In iTerm with ZSH running this command to install Kyma CLI on MacOS:

curl -Lo kyma.tar.gz https://github.com/kyma-project/cli/releases/download/$(curl -s https://api.github.com/repos/kyma-project/cli/releases/latest | grep tag_name | cut -d '"' -f 4)/kyma_Darwin_x86_64.tar.gz \
&& mkdir kyma-release && tar -C kyma-release -zxvf kyma.tar.gz && chmod +x kyma-release/kyma && sudo mv kyma-release/kyma /usr/local/bin \
&& rm -rf kyma-release kyma.tar.gz

Fails with this error:

zsh: parse error near `)'

When I run the same command in MacOS Terminal with bash, everything works as expected.

Expected result

Can install Kyma CLI using zsh.

Actual result

Can't install with zsh, can install with bash.

Steps to reproduce

Install iTerm, switch shell to zsh and run the command listed in the problem description.

Troubleshooting

I tried Terminal with bash and it worked.

@tomekpapiernik tomekpapiernik added kind/bug Categorizes issue or PR as related to a bug. area/cli Related to all activities around CLI labels Jun 17, 2019
@piotrmsc
Copy link

piotrmsc commented Jun 17, 2019

I have problems with installing it via homebrew as well :


==> Installing kyma-cli from kyma-incubator/kyma-incubator
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences.

==> Installing dependencies for kyma-incubator/kyma-incubator/kyma-cli: go and dep
==> Installing kyma-incubator/kyma-incubator/kyma-cli dependency: go
==> Downloading https://homebrew.bintray.com/bottles/go-1.12.6.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/9a/9a60ffb50476baaa34c017b58be8b5a4a7a25b7934b94800ba1f9e6474c117cf?__gda__=exp=1560753304~hmac=312a87d58001c70c76b0841032593bc092adadeee3585f231cc875e4
######################################################################## 100.0%
==> Pouring go-1.12.6.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/go/1.12.6: 9,812 files, 452.7MB
==> Installing kyma-incubator/kyma-incubator/kyma-cli dependency: dep
==> Downloading https://homebrew.bintray.com/bottles/dep-0.5.4.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/33/33200b5422fac00416ac44c7c28ad5aa627b845cd4d9aeb7002f7d41304deab0?__gda__=exp=1560753327~hmac=3c7d38f868779f4b706ce5ccfa2cc0f0ef90219bafd43228d0a85695
######################################################################## 100.0%
==> Pouring dep-0.5.4.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/dep/0.5.4: 7 files, 11.6MB
==> Installing kyma-incubator/kyma-incubator/kyma-cli
==> Cloning https://github.com/kyma-project/cli.git
Cloning into '/Users/XXX/Library/Caches/Homebrew/kyma-cli--git'...
Note: checking out '49d6bab8036557e6322cf20e31576e7365a93442'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

==> Checking out tag 1.2.0
HEAD is now at 49d6bab Configure goreleaser to release for windows as well (#128)
Error: An exception occurred within a child process:
  RuntimeError: 1.2.0 tag should be db6d31bf0083e50f80d0512f48641344d54346ad
but is actually 49d6bab8036557e6322cf20e31576e7365a93442 ```

Remvoving cloned project does not help as well.

@a-thaler
Copy link
Contributor

@piotrmsc The homebrew problem is solved, please re-try. We forgot to adjust the checksum in the homebrew formula

@a-thaler a-thaler added the area/documentation Issues or PRs related to documentation label Jun 17, 2019
@a-thaler a-thaler changed the title Installation on MacOS doesn't work with zsh Installation instructions on MacOS doesn't work with zsh Jun 17, 2019
@a-thaler a-thaler added this to the Sprint_Huskies_3 milestone Jun 17, 2019
@suleymanakbas91
Copy link

suleymanakbas91 commented Jun 17, 2019

I see that this is because of a bug in zsh: zsh-users/zsh-autosuggestions#102. A workaround is disabling bracketed-paste-magic on zsh.

@piotrmsc
Copy link

@piotrmsc The homebrew problem is solved, please re-try. We forgot to adjust the checksum in the homebrew formula

Works 🎉

@suleymanakbas91
Copy link

Solved by #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to all activities around CLI area/documentation Issues or PRs related to documentation kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants