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 currently always None (the formula bump omits --sha256 and
lets brew compute it from --url): 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 here, and a local git archive is not byte-equal
to GitHub’s served tarball — a wrong --sha256 is worse than none. See
super::coordinator’s source_tarball for the full rationale and the
post-tag follow-up that would populate a correct digest.
Fields§
§url: StringThe source tarball’s public URL (the GitHub tag archive).
sha256: Option<String>The tarball’s sha256, once a correct value can be produced (see the type
docs). Currently always None — brew derives it from Self::url.
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.