Skip to content

Erden 0.2.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 20:12
· 26 commits to main since this release
7971c3a

Erden 0.2.1 is a bug-fix release of the erden command line tool (also available as den). It fixes erden login against erden.sh, lets erden check pass ontologies whose SHACL shapes it used to fail for no real reason, explains SHACL failures better, and fixes two ways the tool could get stuck or crash.

Install

Linux (x64 and arm64, glibc or musl) and macOS on Apple silicon:

curl -fsSL https://erden.sh/install | sh

Windows x64, in PowerShell:

irm https://erden.sh/install.ps1 | iex

Homebrew (macOS on Apple silicon, Linux x64 and arm64):

brew install erden-sh/tap/erden

Scoop (Windows x64):

scoop bucket add erden https://github.com/erden-sh/scoop-bucket
scoop install erden

Already on 0.2.0? Run erden upgrade, or brew upgrade erden or scoop update erden if you installed with Homebrew or Scoop. From 0.1.0, run the install command above once more.

Alpine Linux: install the C++ runtime first, with apk add libstdc++ libgcc.

What's fixed

  • erden login --registry https://erden.sh works. erden.sh is the website; the registry is https://registry.erden.sh. Login used to fail at once with DEVICE_LOGIN_FAILED and no reason. Now --registry https://erden.sh (or www.erden.sh) means the hosted registry for login, logout, publication and query, and the tool says so. Your sign-in is only ever sent to and stored for https://registry.erden.sh. A project manifest that names erden.sh as its registry is not rewritten: networked commands stop with REGISTRY_IS_WEBSITE and tell you the value to set. When a login fails because the address is not an Erden registry, the message now says so and names the hosted registry.
  • SHACL shapes that can never fire no longer fail erden check. Every shape must pass a self-test: a small example graph has to make it report a result. Two kinds of shape could never pass, whatever example you wrote, so projects that had them always failed: a shape without its own target that another shape uses (for example a property shape typed sh:PropertyShape inside sh:property [ ... ], or a shape inside sh:not), and a targeted shape with no constraint (for example an OWL class that is also a node shape with only sh:targetClass). These are no longer self-tested; the shape that uses them is. Every shape that has a constraint still has to fire. Real-world layers such as AAS 3.2 and UCO core 1.5 pass now. This is recorded as validation policy v3.
  • A SHACL failure says why. When SHACL failed only because some shapes did not fire on their self-tests, erden check showed "failed" next to zero violations. It now says, for example, SHACL: failed (shacl-conformance: 0 violations; 29 of 40 shapes did not fire on their self-test fixtures), and lists those shapes. erden publish and erden publication --report explain the possible causes and point you to erden check.
  • An interrupted download no longer blocks the package store. If a download stopped halfway, every later erden install failed as "busy" and erden store prune refused to run until you deleted hidden folders by hand. The store now cleans up a download left untouched for 10 minutes by itself. While a download may still be running, install and prune say so and when to try again.
  • No more crash on HTTP/1.0 responses. A registry or proxy that answered with HTTP/1.0 could crash the tool. Registry requests now use Node.js's own HTTP client, and a response that is cut short is reported as a CLIENT_TRANSPORT error.
  • erden pack refuses what the registry would refuse. Pack now runs the same checks on the manifest, erden.lock and archive that the registry runs on an upload, such as the title and description length limits and whether the lock matches the manifest. A package the registry would turn down fails locally with PACK_PROJECT_CANDIDATE_INVALID and the reason, before anything is uploaded.

The reasoner and erden-shacl engines are the same builds as in 0.2.0.

Verify your download

SHA256SUMS lists the SHA-256 digest of every asset. On Linux, after downloading:

sha256sum -c --ignore-missing SHA256SUMS

Every asset also has a build provenance attestation from the GitHub Actions run that built it. With the GitHub CLI:

gh attestation verify erden-0.2.1-linux-x64.tar.xz --repo erden-sh/erden

The install scripts carry the digest of every archive in this release and refuse any other file.

License

Apache License 2.0; the copyright holder is Ingenio Ventures Inc. This is a pre-1.0 release: commands and file formats can still change.