Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@edmorley
Copy link
Member

@edmorley edmorley commented Apr 30, 2024

  • Makes the distro name/version fields non-optional (String instead of Option<String>), since (a) they will never be None in practice (see Usability issues with the Target type #820), and (b) it otherwise causes a lot of unnecessary friction for languages that have distro-version-specific binaries and need to use the metadata in multiple places in the buildpack.
  • Implements Clone and Debug on Target, which unblocks a number of use-cases, such as including the target as part of a buildpack Error enum variant.

Fixes #820.
GUS-W-15639138.

* Makes the distro name/version fields non-optional, since (a) they will
  never be `None` in practice (see #820), and (b) it otherwise causes a
  lot of unnecessary friction for languages that have distro-version-specific
  binaries and need to use the metadata in multiple places in the buildpack.
* Implements `Debug` on `Target`, which unblocks a number of use-cases,
  such as including the target as part of a buildpack Error enum variant.

Fixes #820.
GUS-W-15639138.
@edmorley edmorley added enhancement New feature or request breaking change labels Apr 30, 2024
@edmorley edmorley self-assigned this Apr 30, 2024
@edmorley edmorley marked this pull request as ready for review April 30, 2024 13:13
@edmorley edmorley requested a review from a team as a code owner April 30, 2024 13:13
@edmorley edmorley enabled auto-merge (squash) April 30, 2024 13:54
@edmorley edmorley merged commit 101af17 into main Apr 30, 2024
@edmorley edmorley deleted the edmorley/distro-non-optional branch April 30, 2024 13:56
bigkevmcd pushed a commit to bigkevmcd/libcnb.rs that referenced this pull request Jul 3, 2024
* Prepare release v0.21.0

* Add additional comment for heroku#821

---------

Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
Co-authored-by: Ed Morley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usability issues with the Target type

2 participants