forked from cloudfoundry/bosh-bootloader
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix ci tasks so it will build this without packr - remove packr from our dockerfile - fix our build scripts for local building - clean up packr related go mods - add documentation of our decisions of the move from packr to embed
- Loading branch information
Showing
442 changed files
with
41 additions
and
63,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
docs/architecture/decisions/0003-replace-packr2-with-go-embed.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 2. Replace packr2 wiht go embed | ||
|
||
Date: 21-02-2023 | ||
|
||
## Status | ||
|
||
Inprogress | ||
|
||
## Context | ||
|
||
The issue motivating this decision, and any context that influences or constrains the decision. | ||
|
||
The original author packr has discontinued the work on packr | ||
and archived the repo https://github.com/gobuffalo/packr/ since Jun 25 2022 | ||
and as of go 1.16 `go:embed` was introduced see 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. | ||
|
||
|
||
## Decision | ||
|
||
Use [embed](https://pkg.go.dev/embed) instead. | ||
|
||
## Consequences | ||
|
||
- getting rid of an external tool packr2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.