pub struct RealGoBuildEnv {
pub mod_mode: String,
}Expand description
Production GoBuildEnv: shells go and reads the real filesystem.
mod_mode defaults to "vendor" — the M1 hermetic contract
(vendored tree, no proxy). The one legitimate non-vendor use is a
dep-free module (nothing to vendor), which the integration test
selects explicitly.
Fields§
§mod_mode: StringTrait Implementations§
Source§impl Default for RealGoBuildEnv
impl Default for RealGoBuildEnv
Source§impl GoBuildEnv for RealGoBuildEnv
impl GoBuildEnv for RealGoBuildEnv
Source§fn go_list(
&self,
root: &Path,
tuple: &TargetTuple,
) -> Result<String, GomodError>
fn go_list( &self, root: &Path, tuple: &TargetTuple, ) -> Result<String, GomodError>
Run
go list -deps -json for the tuple over the module at root,
returning the concatenated-JSON-object stream. MUST be hermetic
(-mod=vendor, GOPROXY=off) on the real impl.Auto Trait Implementations§
impl Freeze for RealGoBuildEnv
impl RefUnwindSafe for RealGoBuildEnv
impl Send for RealGoBuildEnv
impl Sync for RealGoBuildEnv
impl Unpin for RealGoBuildEnv
impl UnsafeUnpin for RealGoBuildEnv
impl UnwindSafe for RealGoBuildEnv
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
Mutably borrows from an owned value. Read more