jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
8.28k stars 192 forks source link

[cache] Rename cache copy, add single package functionality #1943

Closed mikeland73 closed 5 months ago

mikeland73 commented 5 months ago

Summary

Renames devbox cache copy to devbox cache upload. Also changes the interface to use --to flag for cache URI. This allows easier use if cache is provided by jetpack API.

e.g.

# upload project packages to jetpack provided cache
devbox cache upload

# upload installable to jetpack provided cache
devbox cache upload <installable>

If user wishes to specify cache URI, they can do:

# upload project
devbox cache upload --to 's3://mike-test-nix-cache?region=us-west-2'

# upload single installable
devbox cache upload --to 's3://mike-test-nix-cache?region=us-west-2' nixpkgs#php

How was it tested?

devbox cache upload --to 's3://mike-test-nix-cache?region=us-west-2'
devbox cache upload --to 's3://mike-test-nix-cache?region=us-west-2' nixpkgs#php

Inspected cache on aws.