Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 15:55
· 33 commits to develop since this release
0c8c46e

Added

  • A .kpar hosted at any http(s) URL can be named by an ECMA-427 Package-URL with the Annex B.3.5 download_url qualifier and an optional checksum (pkg:generic/<name>[@<version>]?download_url=<url>[&checksum=<algorithm>:<hex>[,…]], percent-encoded; md5, sha1, sha224, sha256, sha384, sha512 and the sha3 family). The archive is fetched as a plain .kpar URL is, every declared checksum is verified before it is opened — a mismatch installs nothing — and it installs as lib/<publisher>-<name>_<version>.kpar with the archive's SHA-256 in the lock; vcs_url and download_url exclude each other, and syspi add writes the canonical form into .project.json.
  • Accept a model exporter's index when bundling and publish verified KPARs to HTTPS artifact hosts that support conditional PUT.
  • Prune VCS candidates using known constraints before export and reuse verified candidate metadata within a lock run.
  • syspi list [-json] prints the locked packages in resource order with version, kind or VCS, revision, path under lib/ and whether that installed copy is present; standard libraries and local directories are listed as recorded but never installed. It reads only the lock and lib/.
  • syspi remove <resource>… drops a usage from .project.json (matched by its canonical identity, as add matches), re-resolves and re-locks what remains, and removes from lib/ only the installed copies no remaining package of the closure needs — never a directory the lock did not place there, never one whose contents no longer match the lock. A package another locked package still uses stays, and the message names who uses it.
  • Resolve transitive version conflicts by trying other matching repository tags while preferring compatible locked versions.
  • A user name is accepted before the host of a <vcs>+ssh:// location —
    git+ssh://git@github.com/owner/repo@1.0.0, hg+ssh://…, svn+ssh://… — so an SSH remote no
    longer needs a User entry in ssh_config. It is the SSH login, part of the identity
    (…git%2Bssh:%2F%2Fgit%40github.com%2F… in .project.json and the lock) and of the address
    the VCS executable is given. A password anywhere, and a user name on any other transport,
    stay refused.
  • syspi update [<resource>…] re-resolves the named (or all) usages to the highest version their constraints allow, ignoring the lock — the one command that moves a lock entry — installs, rewrites the lock and removes the copies the moved entries left under lib/; syspi outdated [-json] [<resource>…] reports what update would move (name old -> new) and writes nothing.
  • syspi verify checks every lock entry's installed copy under lib/ against the lock — .project.json, the checksums .meta.json records, the tree or .kpar SHA-256, the usages it declares — and that every usage of .project.json is locked; it prints every discrepancy, exits 1 on any, contacts no repository and writes nothing.

Changed

  • syspi publish prints the canonical pkg:generic/<name>@<version>?checksum=sha256:…&download_url=… usage of the uploaded archive instead of a bare SHA-256.

Removed

  • A .project.lock.json is read exactly as this tool writes it: a repository resource in a non-canonical spelling (pkg:git/…, a bare <vcs>+<transport>://…) or a usage given as a bare string is refused with the canonical form, instead of being translated as pre-release locks were.

Fixed

  • The Windows CI and release gates install hg and sliksvn one Chocolatey package at a time, retry a failed install and trust only the binary on disk, so a transient feed error no longer slips through a choco that exits 0 and surfaces as svn: command not found later.
  • Write one checksum object per KPAR member as required by the published KerML interchange schema and continue verifying legacy checksum arrays.
  • A candidate reused within a syspi lock run claims its lib/ slot again, so two packages installing under one name with different contents are still reported.
  • Preserve the declared metamodel, includesDerived and includesImplied in KPAR bundles and require a versioned OMG SysML metamodel URI when bundling textual SysML models.

Install with the scripts in the repository (install.sh, install.ps1; see the
README) or download an archive and check it against SHA256SUMS.txt, which is signed
keyless by this workflow (SHA256SUMS.txt.bundle):

cosign verify-blob SHA256SUMS.txt --bundle SHA256SUMS.txt.bundle \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity https://github.com/Open-MBEE/SysPI/.github/workflows/release.yml@refs/tags/v0.2.0
sha256sum --check --ignore-missing SHA256SUMS.txt