Adds the canonical .gitignore, .dockerignore and .editorconfig; the first two also name this repo's build output, root-anchored so cmd/bsdaily/ stays in. The Dockerfile gains a lint phase on the golangci-lint image already pinned and a test phase on the Debian Go image with sqlite3 and zstd; the build stage copies a file from each, so a plain docker build cannot skip them. script/lint and script/test build their phase uncached and tagged; script/cibuild, script/docker and the CI workflow are the canonical copies. Nothing installs golangci-lint on the host. REPO_POLICIES.md is re-vendored. .golangci.yml and the lint cleanup: #6 Judgement call: .gitignore adds Go build output, per the Go styleguide. Model: opus-5-5
This commit is contained in:
@@ -58,13 +58,6 @@ main() {
|
||||
# Go toolchain
|
||||
if missing go; then pkg_install go golang go go; fi
|
||||
|
||||
# golangci-lint: packaged in nix, brew, and apk. There is no apt
|
||||
# package; on apt systems install it manually from a hash-verified
|
||||
# GitHub release archive (never curl | sh).
|
||||
if missing golangci-lint; then
|
||||
pkg_install golangci-lint golangci-lint golangci-lint golangci-lint
|
||||
fi
|
||||
|
||||
go mod download
|
||||
|
||||
echo "bootstrap complete"
|
||||
|
||||
Reference in New Issue
Block a user