pub struct SourceTarball {
pub url: String,
pub sha256: Option<String>,
}Expand description
The published source tarball a Homebrew formula bump consumes (--url /
--sha256).
The url is the deterministic GitHub source-archive URL for the cut’s tag.
The sha256 is None during the pre-tag phases (dry-run / build preview):
the tag archive the url points at is created only in the tag-once phase,
after publish-all (ADR-0002 §2), so it cannot be fetched-and-hashed yet, and a
local git archive is not byte-equal to GitHub’s served tarball — a wrong
--sha256 is worse than none. The post-tag dist phase then fetches the
pushed archive, hashes it, and threads the real Some(sha256) into the homebrew
publish so the finalized formula carries a correct hash (no draft placeholder).
See super::coordinator’s source_tarball / dist_phase.
Fields§
§url: StringThe source tarball’s public URL (the GitHub tag archive).
sha256: Option<String>The tarball’s sha256. None in the pre-tag preview phases (brew would
derive it from Self::url); Some(<64-hex>), computed from the pushed tag
archive, in the post-tag dist phase that finalizes the formula.
Trait Implementations§
Source§impl Clone for SourceTarball
impl Clone for SourceTarball
Source§fn clone(&self) -> SourceTarball
fn clone(&self) -> SourceTarball
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SourceTarball
impl Debug for SourceTarball
impl Eq for SourceTarball
Source§impl PartialEq for SourceTarball
impl PartialEq for SourceTarball
impl StructuralPartialEq for SourceTarball
Auto Trait Implementations§
impl Freeze for SourceTarball
impl RefUnwindSafe for SourceTarball
impl Send for SourceTarball
impl Sync for SourceTarball
impl Unpin for SourceTarball
impl UnsafeUnpin for SourceTarball
impl UnwindSafe for SourceTarball
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.