Skip to content

fix: --lockfile-only in CI and with frozen-lockfile=true#4955

Merged
zkochan merged 2 commits into
mainfrom
fix/4951
Jun 30, 2022
Merged

fix: --lockfile-only in CI and with frozen-lockfile=true#4955
zkochan merged 2 commits into
mainfrom
fix/4951

Conversation

@zkochan

@zkochan zkochan commented Jun 30, 2022

Copy link
Copy Markdown
Member

close #4951

installsOnly &&
(
frozenLockfile ||
frozenLockfile && !opts.lockfileOnly ||

@ghiscoding ghiscoding Jun 30, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is that expected to be written without brackets () around it? I didn't test anything, I'm just asking. I mean should it be (frozenLockfile && !opts.lockfileOnly)? If not then Prettier is probably to blame here, it's confusing when it's on 1 line

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It will work without brackets just fine. && has bigger priority than ||

@ghiscoding ghiscoding Jun 30, 2022

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ahh ok I forgot about that, cool 👍🏻

@zkochan zkochan requested a review from a team June 30, 2022 00:59
@zkochan zkochan merged commit b55b378 into main Jun 30, 2022
@zkochan zkochan deleted the fix/4951 branch June 30, 2022 08:00
This was referenced Jun 30, 2022
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 this pull request may close these issues.

regression with version 7.4.0, it no longer update pnpm-lock.yaml in CI due to recent PR to exit early on lockfile-only

3 participants