Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bkt permits setting a cache scope (provided via the `BKT_SCOPE` environment variable or the `--scope` command line option) to prevent collisions between unrelated command invocations. Previously, the scope value was used verbatim in a directory path, causing errors if the scope contained path-sensitive characters such as `/`. This commit modifies bkt to base64 encode the scope value. Given a scope value like `https://example.com/`, that means we now end up with a path like: /tmp/bkt-0.7-cache/keys/aHR0cHM6Ly9leGFtcGxlLmNvbS8.C3823B193F1E0C78 Instead of the invalid: /tmp/bkt-0.7-cache/keys/https://www.example.com/.C3823B193F1E0C78 Fixes #50
- Loading branch information