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 deps installation in makefile and adjust docs #456

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mfocko
Copy link
Member

@mfocko mfocko commented Sep 26, 2024

No description provided.

@mfocko mfocko self-assigned this Sep 26, 2024
Copy link
Contributor

Makefile Outdated
Comment on lines 11 to 12
sudo dnf -y install python3-flask python3-flask-cors python3-flask-talisman npm
npm install -g corepack

Copy link
Collaborator

Choose a reason for hiding this comment

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

Note sure which version but we can install NodeJS>16 to get corepack

Suggested change
sudo dnf -y install python3-flask python3-flask-cors python3-flask-talisman npm
npm install -g corepack
sudo dnf -y install python3-flask python3-flask-cors python3-flask-talisman nodejs

Copy link
Member Author

@mfocko mfocko Sep 26, 2024

Choose a reason for hiding this comment

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

mfocko@ampere 
~ % node --version
v20.17.0

mfocko@ampere 
~ % corepack
zsh: corepack: command not found...

uhh…

Copy link
Collaborator

@Venefilyn Venefilyn Sep 26, 2024

Choose a reason for hiding this comment

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

Huh..

We can change it around to just install pnpm. dnf install pnpm. Might be better. Then we don't need corepack enable pnpm below either

Copy link
Collaborator

Choose a reason for hiding this comment

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

Try this

Suggested change
sudo dnf -y install python3-flask python3-flask-cors python3-flask-talisman npm
npm install -g corepack
sudo dnf -y install python3-flask python3-flask-cors python3-flask-talisman pnpm
📦[spytec@fedora-rawhide]~% dnf search pnpm --showduplicates
Updating and loading repositories:
Repositories loaded.
Matched fields: name (exact)
 pnpm-0:9.11.0-1.fc42.noarch: Fast, disk space efficient package manager

Comment on lines +14 to +17
`make install-dependencies` automatically installs `nodejs` and `npm` for you,
and additionally also `corepack` via `npm`. In case the installation fails,
follow [this](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally)
guide to set up a directory for `npm` in your home directory.
Copy link
Collaborator

Choose a reason for hiding this comment

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

If it's included in NodeJS v16 and above it should just work without issue so seems unnecessary in that case

Copy link
Collaborator

Choose a reason for hiding this comment

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

If dnf install works we can probably remove this

@usercont-release-bot
Copy link

usercont-release-bot commented Oct 1, 2024

Preview: https://packit-dashboard-pr-456.surge.sh (deployed at Tue 01 Oct 2024, 12:10 UTC)

Copy link
Contributor

mfocko and others added 2 commits October 1, 2024 14:09
Copy link
Contributor

@mfocko
Copy link
Member Author

mfocko commented Oct 1, 2024

recheck

Copy link
Contributor

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

Successfully merging this pull request may close these issues.

3 participants