Skip to content

task-manager v0.9.0

Choose a tag to compare

@github-actions github-actions released this 29 Aug 15:53
· 36 commits to main since this release
662ec94

Hooks move out of config files and into packages, taskmgr guide is reorganised
into jobs, and sdk/tasks sheds several forwarding APIs. SDK consumers must move
to sdk/v0.9.0.

⚠️ Breaking changes

sdk/tasks API

  • Removed Config.Hooks, GlobalConfig.Hooks and HookID. Hooks now live in packages (#72).
  • Removed Store.Query, Store.Find, Store.FindPage and FindOptions. Each forwarded to List/ListPage with no caller outside the tests (#73).
  • Replaced Store.SetNow with the WithClock construction option. SetNow was an unsynchronised field write on a type documented as safe for concurrent use (#73).
  • Store.HookChain no longer returns a package's load error. It returns the hooks that did load, as Packages and GuideTopics already do (#77).
  • Added PackageRef, PackageInfo, HookInfo, ErrPackageMissing, Store.Packages, Store.HookChain, Store.InspectPackage and InspectGlobalPackage (#72), and GuideTopic (#74).

Configuration

  • An absolute path: entry in a use: list is refused. Install the package under the taskmgr home and name it with name: (#77).
  • A config file still carrying the withdrawn hooks: key now fails every mutation with a message naming the key, instead of being ignored (#77).
  • Two use: entries resolving to one package name no longer error. The later one is reported shadowed (#77).

taskmgr guide

  • The guide is organised into jobs. taskmgr guide with no argument prints the job list and nothing else (#79).
  • The topic ids intro, conventions and more (#74), and model, loop, body, query and output (#79), no longer resolve. An unknown topic now suggests the job that holds it, and --list remains the complete roster.
  • A package's guide: entry gains an optional into:, which places a fragment inside a built-in job (#79).

Features

  • Move hooks from config files into packages (#72)
  • An addressable guide, and prose contributed by packages (#74)
  • A guide in jobs, and packages that add to one (#79)

Fixes

  • Close the pre-release review's 17 findings (#77)
  • Make the inline-comment migration idempotent (#78)

Docs

  • Bind the six body rules with a completion criterion (#75)

Install

go install github.com/hk9890/task-manager/cmd/taskmgr@v0.9.0

Or download an archive below. To verify (needs cosign 3.x):

sha256sum -c checksums.txt
cosign verify-blob checksums.txt \
  --bundle checksums.txt.bundle \
  --certificate-identity-regexp '^https://github\.com/hk9890/task-manager/' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Full changelog: v0.8.0...v0.9.0