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

Infinite install bug #941

Closed
yangchoo opened this issue May 16, 2023 · 2 comments
Closed

Infinite install bug #941

yangchoo opened this issue May 16, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@yangchoo
Copy link

Meta:

CircleCI CLI Version:
v0.1.26786

Operating System:
cimg/base and all derived images.
I.e. Any Ubuntu 22.04.2 derived images. Most likely wider impact, unverified.

CircleCI CLI Diagnostic:
n/a

Current behavior:

Unable to install circlecli from install.sh script. Results in infinite install loop. Breaks any builds which rely on circleci cli installation following official install script instructions.

❯ docker run cimg/base:2023.05 curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | bash
Starting installation.
Installing CircleCI CLI v0.1.26786
Installing to /usr/local/bin
Starting installation.
Installing CircleCI CLI v0.1.26786
Installing to /usr/local/bin
Starting installation.
Installing CircleCI CLI v0.1.26786
Installing to /usr/local/bin
Starting installation.
Installing CircleCI CLI v0.1.26786
^C

Expected behavior:

CircleCI should install correctly without infinite recursion.

When did this begin / Was this previously working?:

Since new version was released. v0.1.26646 was last observed to work.

Additional Information:

Likely a result of #352

See #352 (comment)

@dmartin-gresham
Copy link

I think the bug is in this line:

install circleci "$DESTDIR"

It's trying to call the linux install command, but that's been redefined on line 19.

@JulesFaucherre
Copy link
Contributor

Thanks for reporting, this has been solved with the following pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants