Skip to main content

resolve_with_context

Function resolve_with_context 

Source
pub fn resolve_with_context(ctx: &GoParseContext) -> GoEnvConfig
Expand description

Resolves $GOENV into a GoEnvConfig, reading the already-resolved GoParseContext::goenv_path instead of calling goenv_path itself.

This is the seam crate::parser::parse_go_mod_with_context calls in production, and the way tests exercise the full parse -> resolve -> register_chain -> get_versions_from path without depending on the real host $GOENV.