An open API service indexing awesome lists of open source software.

https://github.com/brandonc/example-go-slug-mtime

A tool to compare go-slug hashes after unpacking some sample directories
https://github.com/brandonc/example-go-slug-mtime

Last synced: 3 months ago
JSON representation

A tool to compare go-slug hashes after unpacking some sample directories

Awesome Lists containing this project

README

        

# example-go-slug-mtime

Used to test [this change](https://github.com/hashicorp/go-slug/pull/47) to go-slug.

## Instructions

1. Clone this repo in a peer directory to `go-slug`
2. `go run main.go` will slug and unpack the `archive-dir` and the hash comparison should fail
3. Check out the branch associated with link above in `go-slug`
4. `go mod edit -replace github.com/hashicorp/go-slug=../go-slug` will reference the fixed package
5. `go run main.go` should now succeed
6. You can run this tool against other directories by specifying an argument `go run main.go "./archive-dir-absolute"`