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

Improve usability of Target #821

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Improve usability of Target #821

merged 2 commits into from
Apr 30, 2024

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
4 checks passed
@edmorley edmorley deleted the edmorley/distro-non-optional branch April 30, 2024 13:56
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