Skip to content

Fetching info more effectively from index via sysand info --iri ... #327

@consideRatio

Description

@consideRatio

#292 made us just show the output of one version, but it doesn't yet avoid needing to fetch all versions metadata as it could theoretically, as picking the version to lookup can be done using versions.json alone in the index.

cargo run -- info -v --iri pkg:sysand/org1/proj1 --default-index=https://sysand-index-alpha.syside.app

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s
     Running `target/debug/sysand info -v --iri 'pkg:sysand/org1/proj1' '--default-index=https://sysand-index-alpha.syside.app'`
debug: sysand v0.0.12-dev.1
debug: trying to discover workspace in `/home/erik/dev/sensmetry/sysand`
debug: discover: checking in parent of `/home/erik/dev/sensmetry/sysand`
debug: discover: checking in parent of `/home/erik/dev/sensmetry`
debug: discover: checking in parent of `/home/erik/dev`
debug: discover: checking in parent of `/home/erik`
debug: discover: checking in parent of `/home`
debug: discover: not found
debug: trying to discover project in `/home/erik/dev/sensmetry/sysand`
debug: discover: checking in parent of `/home/erik/dev/sensmetry/sysand`
debug: discover: checking in parent of `/home/erik/dev/sensmetry`
debug: discover: checking in parent of `/home/erik/dev`
debug: discover: checking in parent of `/home/erik`
debug: discover: checking in parent of `/home`
debug: discover: not found
debug: Loaded 147 CA root certificates from the system
warning: Direct or transitive usages of SysML v2/KerML standard library packages are
         ignored by default. If you want to process them, pass `--include-std` flag
debug: higher priority resolver failed to resolve IRI: pkg:sysand/org1/proj1
debug: file resolver rejected IRI `pkg:sysand/org1/proj1`: `pkg:sysand/org1/proj1` is not a file URL
debug: HTTP resolver rejected IRI: not an http(s) URL
debug: git resolver rejected IRI: url scheme `pkg` of IRI `pkg:sysand/org1/proj1` is not known to be git-compatible
debug: remote resolver unable to find valid project for IRI `pkg:sysand/org1/proj1`
debug: GET (no auth) `https://sysand-index-alpha.syside.app/sysand-index-config.json`
debug: starting new connection: https://sysand-index-alpha.syside.app/
debug: response to (no auth) `https://sysand-index-alpha.syside.app/sysand-index-config.json`: status 200 OK, content type Some("application/json")
debug: GET (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/versions.json`
debug: response to (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/versions.json`: status 200 OK, content type Some("application/json")
debug: GET (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/1.0.0/.project.json`
debug: GET (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/1.0.0/.meta.json`
debug: starting new connection: https://storage.googleapis.com/
debug: starting new connection: https://storage.googleapis.com/
debug: response to (no auth) `https://storage.googleapis.com/index-staging.sysand.org/e34a2d2653c0dcc1ae1f4c23069ff588cf873f1877bc9905fe69cfcb475135ab.project.json`: status 200 OK, content type Some("application/json")
debug: response to (no auth) `https://storage.googleapis.com/index-staging.sysand.org/e34a2d2653c0dcc1ae1f4c23069ff588cf873f1877bc9905fe69cfcb475135ab.meta.json`: status 200 OK, content type Some("application/json")
debug: GET (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/0.2.0/.project.json`
debug: GET (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/0.2.0/.meta.json`
debug: response to (no auth) `https://storage.googleapis.com/index-staging.sysand.org/0de44bdb00a54e38691450d793b2e12ff256bef044358d7aee14e67d9c163162.meta.json`: status 200 OK, content type Some("application/json")
debug: response to (no auth) `https://storage.googleapis.com/index-staging.sysand.org/0de44bdb00a54e38691450d793b2e12ff256bef044358d7aee14e67d9c163162.project.json`: status 200 OK, content type Some("application/json")
debug: GET (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/0.1.0/.project.json`
debug: GET (no auth) `https://sysand-index-alpha.syside.app/index/org1/proj1/0.1.0/.meta.json`
debug: response to (no auth) `https://storage.googleapis.com/index-staging.sysand.org/5935b36e2323f47f5dae17c78320f29f130b12e889428acaaa904f62a4c430d0.project.json`: status 200 OK, content type Some("application/json")
debug: response to (no auth) `https://storage.googleapis.com/index-staging.sysand.org/5935b36e2323f47f5dae17c78320f29f130b12e889428acaaa904f62a4c430d0.meta.json`: status 200 OK, content type Some("application/json")
Name: proj1
Publisher: org1
Version: 1.0.0
License: MIT
No usages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions