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

Fail to install netlify cli action #54

Closed
Wyfy0107 opened this issue Jan 10, 2022 · 16 comments · Fixed by #53
Closed

Fail to install netlify cli action #54

Wyfy0107 opened this issue Jan 10, 2022 · 16 comments · Fixed by #53

Comments

@Wyfy0107
Copy link

We're using this action in ubuntu-latest environment, with node 12.x
The installation failed with some weird logs below

Screenshot 2022-01-10 at 12 27 39

@bogdibota
Copy link

got the same error

it's caused by this Marak/colors.js@074a0f8

@sawa-zen
Copy link
Contributor

npm seems to have removed the problematic version of colors.js, so I think it's working now!

@AdrienFromToulouse
Copy link

AdrienFromToulouse commented Jan 11, 2022

👋 I think it does not completely solve the issue. The build is ok BUT the deploy now fails silently with RangeError: Invalid array length.

Do you confirm the same issue?

update ok sorry, this fix is not yet on master.

@sawa-zen
Copy link
Contributor

Oops. I was experiencing the same problem 😵‍💫 I'm sorry I didn't notice.
log

@AdrienFromToulouse
Copy link

Although it seems that moving to npm will introduce another issue of access right during the build:

netlify/cli#1870

do you reproduce on your CI too?

@AdrienFromToulouse
Copy link

AdrienFromToulouse commented Jan 11, 2022

For instance I tried that branch which implements the fix uses: mannum/netlify-actions/cli@master and face the issue

https://github.com/mannum/netlify-actions/blob/master/cli/Dockerfile#L12

I am running on runs-on: ubuntu-latest

@AdrienFromToulouse
Copy link

Oops. I was experiencing the same problem 😵‍💫 I'm sorry I didn't notice. log

I think you are still using yarn, but the package has been somehow "removed" to not create anymore issues. This seems to be a side effect.

@sawa-zen
Copy link
Contributor

OK. I'll try mannum/netlify-actions too.

@AdrienFromToulouse
Copy link

It would be nice if the Netlify team could maintain this and put that into their OKRs, especially for paid customer.
#rant

@AdrienFromToulouse
Copy link

I found it, that requires to upgrade the node version of the image to the most recent if we want to use npm:
netlify/cli#1870 (comment)

Their version is still node 12 on master.

@Wyfy0107
Copy link
Author

@AdrienFromToulouse Just to be sure, the current fix would be to use mannum/netlify-actions with node latest ?

@AdrienFromToulouse
Copy link

AdrienFromToulouse commented Jan 11, 2022

I don't know why with Yarn it keeps failing but using npm you need a recent version of node/npm. Works on my end with

FROM node:16-alpine

LABEL version="1.0.1"
LABEL repository="http://github.com/netlify/actions"
LABEL homepage="http://github.com/netlify/actions/netlify"
LABEL maintainer="Netlify"
LABEL "com.github.actions.name"="Netlify"
LABEL "com.github.actions.description"="Wraps the Netlify CLI to enable common Netlify commands"
LABEL "com.github.actions.icon"="cloud"
LABEL "com.github.actions.color"="blue"

RUN npm install -g netlify-cli

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

@Wyfy0107 you may just fork netlify action and modify the dockerfile and point to your own fork.

@sawa-zen
Copy link
Contributor

Huh? I can now deploy with netlify/actions/cli@master.
log

@AdrienFromToulouse
Copy link

May be some cache on yarn? idk

@sawa-zen
Copy link
Contributor

I don't know either ¯_(ツ)_/¯

@AdrienFromToulouse
If you try netlify/actions/cli@master now, will it succeed?

@Wyfy0107
Copy link
Author

I tried again yesterday and it works now 😅

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 a pull request may close this issue.

4 participants