Skip to content

fix(misc): guard against failure to decode file in migration#23069

Merged
FrozenPandaz merged 1 commit into
nrwl:masterfrom
AgentEnder:fix/not-utf8-migration
May 13, 2024
Merged

fix(misc): guard against failure to decode file in migration#23069
FrozenPandaz merged 1 commit into
nrwl:masterfrom
AgentEnder:fix/not-utf8-migration

Conversation

@AgentEnder

Copy link
Copy Markdown
Member

Current Behavior

A migration in nx (escape-dollar-sing-env-variables) does not guard against non utf-8 files, and can result in a crash during the migration run.

Expected Behavior

If it fails to parse a file, we'll log a message and keep going.

Related Issue(s)

Fixes #22956

@AgentEnder
AgentEnder requested a review from a team as a code owner April 29, 2024 14:58
@AgentEnder
AgentEnder requested a review from FrozenPandaz April 29, 2024 14:58
@vercel

vercel Bot commented Apr 29, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Apr 29, 2024 3:51pm

@FrozenPandaz
FrozenPandaz merged commit 593790d into nrwl:master May 13, 2024
FrozenPandaz pushed a commit that referenced this pull request May 14, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

## Current Behavior
A migration in `nx` (escape-dollar-sing-env-variables) does not guard
against non utf-8 files, and can result in a crash during the migration
run.

## Expected Behavior
If it fails to parse a file, we'll log a message and keep going.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #22956

(cherry picked from commit 593790d)
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fail migration from 16.8.0 to 17.2.0

2 participants