Skip to content

NSC_SCHEMA does not behave like --schema (local path ignored, unreachable URL silently falls back) #192

Closed

Description

@thomaschristory

NSC_SCHEMA never reaches the schema_override path that --schema uses (nsc/cli/globals.py only passes state.overrides.schema_override). Instead, resolve_profile (nsc/cli/runtime.py) runs it through _url_only and uses it as profile.schema_url. As a result:

Expected: NSC_SCHEMA behaves exactly like --schema, with the flag winning when both are set: it accepts a path or URL, never consults the TTL or fallback, and a load failure exits 3 with Error: cannot load schema from <source>: <reason>.

Found while fixing #189.

Activity

  1. thomaschristory commented on Oct 23, 2026

    @thomaschristory
    OwnerAuthor

    Claiming: route NSC_SCHEMA through the --schema override path (flag wins). Branch: fix/nsc-schema-env-override.

  2. thomaschristory commented on Oct 23, 2026

    @thomaschristory
    OwnerAuthor

    PR opened: #193

  3. thomaschristory commented on Oct 23, 2026

    @thomaschristory
    OwnerAuthor

    Fixed by #193 (merged, 625bf7b). Shipping in v1.8.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions