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

refactor: make build string optional in recipe #1020

Merged

Conversation

baszalmstra
Copy link
Contributor

The build string in the recipe was an optional value in name only. The code always assumed it has a value, which it always got during parsing. This PR changes this behavior so that the recipe datastructure actually contains an optional build but the code uses Output::build_string() to get the actual builds string which is either based on the hash or on the user-defined value.

This also allowed me to remove a bunch of unwraps.

I also reformatted some files with the nightly formatter.

@baszalmstra baszalmstra changed the title bump: rattler crates refactor: make build string optional in recipe Aug 15, 2024
Copy link
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

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

I also reformatted some files with the nightly formatter.

Maybe we could use the nightly formatter once and then enforce it on the CI to avoid blowing up our diffs.

One comment, apart from that it looks good!

src/lib.rs Outdated Show resolved Hide resolved
src/metadata.rs Outdated Show resolved Hide resolved
@baszalmstra baszalmstra force-pushed the refactor/no_default_build_string branch from d3477f8 to e04d897 Compare August 16, 2024 09:34
@baszalmstra baszalmstra force-pushed the refactor/no_default_build_string branch from 920e032 to 1b3a01f Compare August 16, 2024 12:19
Copy link
Contributor

@Hofer-Julian Hofer-Julian left a comment

Choose a reason for hiding this comment

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

Looks great now!

@baszalmstra baszalmstra merged commit a28628b into prefix-dev:main Aug 16, 2024
15 checks passed
@baszalmstra baszalmstra deleted the refactor/no_default_build_string branch August 16, 2024 14:35
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.

3 participants