1
0
Fork
You've already forked sigil-version
0
Semantic versioning parsing and comparison for Sigil.
  • Scheme 100%
Find a file
David Wilson 2d2c9ef9c2
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Bump sigil-version to Sigil 0.16
Update the package version and Sigil compatibility range to 0.16, then regenerate the lockfile against sigil-stdlib ^0.16.
Verification:
- /tmp/sigil-t-e6e9/build/dev/bin/sigil deps install
- /tmp/sigil-t-e6e9/build/dev/bin/sigil build
- /tmp/sigil-t-e6e9/build/dev/bin/sigil test
2026年05月06日 13:07:04 +03:00
src/sigil Fix exception handler double-pop causing test runner segfault 2026年02月25日 12:45:23 +02:00
test Fix exception handler double-pop causing test runner segfault 2026年02月25日 12:45:23 +02:00
.gitignore Extract sigil-version from sigil monorepo as standalone repo 2026年04月26日 01:02:30 +03:00
.woodpecker.yml Bump CI pin to sigil v0.14.3 2026年04月26日 20:17:46 +03:00
dev-redirects.sgl Extract sigil-version from sigil monorepo as standalone repo 2026年04月26日 01:02:30 +03:00
LICENSE Extract sigil-version from sigil monorepo as standalone repo 2026年04月26日 01:02:30 +03:00
manifest.scm Extract sigil-version from sigil monorepo as standalone repo 2026年04月26日 01:02:30 +03:00
package.sgl Bump sigil-version to Sigil 0.16 2026年05月06日 13:07:04 +03:00
README.md Extract sigil-version from sigil monorepo as standalone repo 2026年04月26日 01:02:30 +03:00
sigil.lock Bump sigil-version to Sigil 0.16 2026年05月06日 13:07:04 +03:00

sigil-version

Semantic versioning for Sigil — parse, compare, and constraint-match version strings per semver 2.0.0.

Usage

(import (sigil version))
(define v (parse-version "1.2.3-alpha.1"))
(version-major v) ; => 1
(version<? v (parse-version "1.2.4")) ; => #t
;; Constraint matching
(version-satisfies? v ">= 1.0.0") ; => #t
(version-satisfies? v "^1.2.0") ; => #t (caret: same major, >= given)
(version-satisfies? v "~1.2.0") ; => #t (tilde: same major.minor, >= given)

Supports the standard constraint operators (=, >, >=, <, <=, ^, ~, *) plus the full semver field set (major / minor / patch / prerelease / build). See src/sigil/version.sgl for the full export list and inline reference.

Building

sigil deps install
sigil build
sigil test

For local development against an in-tree sigil-lang checkout:

sigil build --redirects ./dev-redirects.sgl

License

BSD-3-Clause. See LICENSE (license header lives in package.sgl).