Skip to content

Commit

Permalink
Allow process comparisons (#223)
Browse files Browse the repository at this point in the history
As seen in the procfile buildpack work. I want to be able to compare equality of Process variables.
  • Loading branch information
schneems authored Dec 8, 2021
1 parent d22e43a commit 3468bf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased]

- Add `PartialEq` and `Eq` implementations for `Process`.
- Add support for `default` key in `launch.toml` in `Process` struct
- Support the new `buildpack.toml` fields `description`, `keywords` and `licenses`
- Set a minimum required Rust version of 1.56 and switch to the 2021 Rust edition
Expand Down Expand Up @@ -29,7 +30,7 @@
- Add `LayerEnv::chainable_insert`
- `LayerEnv` and `ModificationBehavior` now implement `Clone`.
- Add `stack_id!`, `buildpack_id!` and `process_type!` macros.
- `Process::new` no longer returns a `Result` and it's `type` argument now is of type `ProcessType`.
- `Process::new` no longer returns a `Result` and it's `type` argument now is of type `ProcessType`.
- Made it easier to work with buildpack errors during all phases of a `LayerLifecycle`.
- `LayerEnv` was integrated into the `LayerLifecycle`, allowing buildpack authors to both write environment variables
in a declarative way and using them between different layers without explicit IO.
Expand Down
2 changes: 1 addition & 1 deletion libcnb-data/src/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub struct Label {
pub value: String,
}

#[derive(Deserialize, Serialize, Debug)]
#[derive(Deserialize, Serialize, Debug, PartialEq, Eq)]
pub struct Process {
pub r#type: ProcessType,
pub command: String,
Expand Down

0 comments on commit 3468bf7

Please sign in to comment.