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

Preserve metadata in more places #12848

Merged
merged 3 commits into from
May 17, 2024

Conversation

IanManske
Copy link
Member

Description

This PR makes some commands and areas of code preserve pipeline metadata. This is in an attempt to make the issue described in #12599 and #9456 less likely to occur. That is, reading and writing to the same file in a pipeline will result in an empty file. Since we preserve metadata in more places now, there will be a higher chance that we successfully detect this error case and abort the pipeline.

@IanManske IanManske added pr:bugfix This PR fixes some bug pr:errors This PR improves our error messages labels May 12, 2024
@IanManske
Copy link
Member Author

Should come after #12788.

Copy link
Member

@sholderbach sholderbach left a comment

Choose a reason for hiding this comment

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

I think we should be good to go here now

@IanManske IanManske marked this pull request as ready for review May 17, 2024 17:57
@IanManske IanManske merged commit 580c60b into nushell:main May 17, 2024
15 checks passed
FilipAndersson245 pushed a commit to FilipAndersson245/nushell that referenced this pull request May 18, 2024
# Description
This PR makes some commands and areas of code preserve pipeline
metadata. This is in an attempt to make the issue described in nushell#12599
and nushell#9456 less likely to occur. That is, reading and writing to the same
file in a pipeline will result in an empty file. Since we preserve
metadata in more places now, there will be a higher chance that we
successfully detect this error case and abort the pipeline.
@hustcer hustcer added this to the v0.94.0 milestone May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:bugfix This PR fixes some bug pr:errors This PR improves our error messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants