Skip to content

Comments

chore: yarn v4 migration#318

Open
michael-valdron wants to merge 5 commits intodevfile:mainfrom
michael-valdron:migrate-yarn-v4
Open

chore: yarn v4 migration#318
michael-valdron wants to merge 5 commits intodevfile:mainfrom
michael-valdron:migrate-yarn-v4

Conversation

@michael-valdron
Copy link
Member

Description of Changes

With yarn classic development slowing down, we are moving to yarn v4 to continue receiving patches and support modern package managers.

Related Issue(s)

resolves devfile/api#1766

Acceptance Criteria

  • Unit Tests
  • E2E Tests
  • Documentation
    Update the sidebar if there is a new file added or an existing filename is changed

Tests Performed

Explain what tests you personally ran to ensure the changes are functioning as expected.

How To Test

Instructions for the reviewer on how to test your changes.

Notes To Reviewer

Any notes you would like to include for the reviewer.

@openshift-ci
Copy link

openshift-ci bot commented Feb 18, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michael-valdron

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Dockerfile Dismissed
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo && \
microdnf install -y yarn
# Install corepack
RUN npm install -g corepack@0.34.6

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 9: npmCommand not pinned by hash
Click Remediation section below to solve this issue
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to above comments

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
…der devfile

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Copy link
Contributor

@Jdubrick Jdubrick left a comment

Choose a reason for hiding this comment

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

Small comments, generally lgtm

attributes:
container-overrides:
securityContext:
runAsUser: 1001
Copy link
Contributor

Choose a reason for hiding this comment

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

Any particular reason for removing this user context? is it just because runAsNonRoot is true and its redundant?

# Install corepack & node-gyp dependency
RUN microdnf install -y python3 gcc-c++ make && \
npm install --build-from-resource node-gyp && \
npm install -g corepack@0.34.6
Copy link
Contributor

Choose a reason for hiding this comment

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

If possible can we pin this?

npm install -g corepack@0.34.6

# Install yarn v4
RUN corepack install -g yarn@4
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above, is it possible to pin?

Dockerfile Dismissed
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo && \
microdnf install -y yarn
# Install corepack
RUN npm install -g corepack@0.34.6
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to above comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate yarn classic to yarn v4

2 participants