-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from jcouture/feature/2.1.0-release
Feature/2.1.0 release
- Loading branch information
Showing
15 changed files
with
149 additions
and
290 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
# Folders | ||
_obj | ||
_test | ||
dist | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
|
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 |
---|---|---|
@@ -1,30 +1,48 @@ | ||
project_name: nv | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
archive: | ||
replacements: | ||
darwin: Darwin | ||
amd64: x86_64 | ||
- <<: &build_defaults | ||
binary: nv | ||
main: ./cmd/nv/ | ||
env: | ||
- CGO_ENABLE=0 | ||
ldflags: | ||
- -s -w -X github.com/jcouture/nv/internal/build.Version={{.Version}} -X github.com/jcouture/nv/internal/build.Date={{time "2006-01-02"}} | ||
id: macos | ||
goos: [darwin] | ||
goarch: [amd64, arm64] | ||
|
||
- <<: *build_defaults | ||
id: linux | ||
goos: [linux] | ||
goarch: [386, arm, amd64, arm64] | ||
|
||
- <<: *build_defaults | ||
id: windows | ||
goos: [windows] | ||
goarch: [386, amd64, arm] | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
|
||
changelog: | ||
sort: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
brew: | ||
github: | ||
owner: jcouture | ||
name: homebrew-nv | ||
folder: Formula | ||
homepage: https://github.com/jcouture/nv | ||
description: Lightweight utility to load context specific environment variables | ||
test: | | ||
system "#{bin}/nv" | ||
- '^docs:' | ||
- '^test:' | ||
|
||
brews: | ||
- | ||
tap: | ||
owner: jcouture | ||
name: homebrew-nv | ||
folder: Formula | ||
homepage: https://github.com/jcouture/nv | ||
description: Lightweight utility to load context specific environment variables | ||
test: | | ||
system "#{bin}/nv" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/jcouture/nv | ||
|
||
go 1.16 | ||
|
||
require github.com/mitchellh/go-homedir v1.1.0 |
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,2 @@ | ||
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= | ||
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= |
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,13 @@ | ||
package build | ||
|
||
import "time" | ||
|
||
var Version = "DEV" | ||
|
||
var Date = "" // YYYY-MM-DD | ||
|
||
func init() { | ||
if Version == "DEV" { | ||
Date = time.Now().Format("2006-01-02") | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.