From bf8c88dd38cff7ae99e63040cfae5635c9983bd2 Mon Sep 17 00:00:00 2001 From: Yonghwan SO Date: Sun, 21 Nov 2021 14:29:22 +0900 Subject: [PATCH 1/2] fixed readme and version bump up --- README.md | 47 ++++++++++++++++++++++++++++++++++++++++++----- version.go | 2 +- 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cb63463..0431e07 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -**NOTICE: Please consider migrating your projects to github.com/markbates/pkger. It has an idiomatic API, minimal dependencies, a stronger test suite (tested directly against the std lib counterparts), transparent tooling, and more.** +**NOTICE: Please consider migrating your projects to +[embed](https://pkg.go.dev/embed) which is native file embedding feature of Go, +or github.com/markbates/pkger. It has an idiomatic API, minimal dependencies, a stronger test suite (tested directly against the std lib counterparts), transparent tooling, and more.** https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc79c65 @@ -9,20 +11,55 @@ https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc7 Packr is a simple solution for bundling static assets inside of Go binaries. Most importantly it does it in a way that is friendly to developers while they are developing. +At this moment, supported go versions are: + +* 1.16.x +* 1.17.x + +even though it may (or may not) working well with older versions. + ## Intro Video To get an idea of the what and why of Packr, please enjoy this short video: [https://vimeo.com/219863271](https://vimeo.com/219863271). ## Library Installation -```text -$ go get -u github.com/gobuffalo/packr/v2/... +### Go 1.16 and above + +```console +$ go install github.com/gobuffalo/packr/v2@v2.8.3 +``` + +or + +```console +$ go install github.com/gobuffalo/packr/v2@latest +``` + +### Go 1.15 and below + +```console +$ go get -u github.com/gobuffalo/packr/... ``` ## Binary Installation -```text -$ go get -u github.com/gobuffalo/packr/v2/packr2 +### Go 1.16 and above + +```console +$ go install github.com/gobuffalo/packr/v2/packr2@v2.8.3 +``` + +or + +```console +$ go install github.com/gobuffalo/packr/v2/packr2@latest +``` + +### Go 1.15 and below + +```console +$ go get -u github.com/gobuffalo/packr/packr2 ``` ## New File Format FAQs diff --git a/version.go b/version.go index 58e0065..22064ab 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package packr // Version of Packr -const Version = "v2.8.1" +const Version = "v2.8.3" From 3aab0cf88b4ef7227368a6e48a0b02b75ba53c46 Mon Sep 17 00:00:00 2001 From: Yonghwan SO Date: Mon, 22 Nov 2021 22:30:16 +0900 Subject: [PATCH 2/2] fixed github action test --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8998c7b..1d2fc32 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,11 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 1 + - name: Setup Go ${{ matrix.go-version }} + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} - name: Test run: | - go test -race ./... + go test -race -cover -v ./... go install -v ./packr2