pub async fn save_env_state(
    target: &TargetMetadata,
    env_state: TargetEnvState
) -> Result<()>