a subprocess caching utility, available as a command line binary and a Rust library.
--ttl
is now a required flag. Historically it arbitrarily defaulted to one minute; to preserve this behavior you can set BKT_TTL=1m
in the environment that's executing bkt
(#48 and #27)CacheStatus::Hit(Instant)
has been replaced with CacheStatus::Hit(SystemTime)
Full Changelog: https://github.com/dimo414/bkt/compare/0.7.1...0.8.0
Patch release to pick up the fix for #44 which was a regression introduced in 0.7.0.
Full Changelog: https://github.com/dimo414/bkt/compare/0.7.0...0.7.1
NotFound
errors during cleanup are now ignored (#42).Bkt::retrieve_streaming
and Bkt::refresh_streaming
have been added for library users that want to stream output, however these methods are subject to change and should be treated as experimentalFull Changelog: https://github.com/dimo414/bkt/compare/0.6.1...0.7.0
Patch release adjusting how --help
's output is wrapped.
Full Changelog: https://github.com/dimo414/bkt/compare/0.6.0...0.6.1
BKT_TTL
, BKT_SCOPE
, and BKT_CACHE_DIR
as alternatives for flags --ttl
, --scope
, and --cache-dir
, respectively (#15).--modtime
flag (#10).--discard_failures
is included in the cache key, meaning bkt -- foo
and bkt --discard_failures -- foo
will be cached separately.feature="debug"
behavior.Bkt::discard_failures()
is now set on CommandDesc
, and affects the cache key.CommandState
type, making CommandDesc
safe to persist and pass around. Environment details like the working directory and environment variables are captured when the CommandState
instance is constructed.Bkt::retrieve
and Bkt::refresh
now return more metadata about the cache state (e.g. whether there was a cache hit or miss).Full Changelog: https://github.com/dimo414/bkt/compare/0.5.4...0.6.0
Patch release to aid packaging for Debian (see https://github.com/dimo414/bkt/issues/12). No new functionality vs. 0.5.2
Patch release to aid packaging for Debian (see #12). No new functionality vs. 0.5.2.
Handle (i.e. ignore) BrokenPipe
errors, which indicate stdout/stderr were closed without reading all output.
Patch release to pick up improved --help
text from #1.
Full Changelog: https://github.com/dimo414/bkt/compare/0.5.0...0.5.1
BKT_TMPDIR
environment variable--discard-failures
to optionally not cache invocations that failBkt::execute()
to Bkt::retrieve()
Bkt
's state, see Bkt::cleanup_on_refresh()
Bkt::discard_failures()
to support --discard-failures
benchmark.sh
script for observing bkt
's overheadFull Changelog: https://github.com/dimo414/bkt/compare/0.4.0...0.5.0