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
- Host: GitHub
- URL: https://github.com/brandonc/example-go-slug-mtime
- Owner: brandonc
- Created: 2023-10-12T21:42:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T22:46:54.000Z (over 1 year ago)
- Last Synced: 2024-12-28T16:27:21.513Z (5 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"`