Skip to content

Commit

Permalink
chezmoi2: Rename binary to chezmoi2
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 25, 2021
1 parent cd0db23 commit dad2040
Show file tree
Hide file tree
Showing 11 changed files with 269 additions and 266 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: chezmoi2-linux-amd64
path: dist/chezmoi2-cgo-glibc_linux_amd64/chezmoi
path: dist/chezmoi2-cgo-glibc_linux_amd64/chezmoi2
- name: Artifact chezmoi-linux-musl-amd64
uses: actions/upload-artifact@v2
with:
Expand All @@ -96,7 +96,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: chezmoi2-linux-musl-amd64
path: dist/chezmoi2-cgo-musl_linux_amd64/chezmoi
path: dist/chezmoi2-cgo-musl_linux_amd64/chezmoi2
- name: Artifact chezmoi-macos-amd64
uses: actions/upload-artifact@v2
with:
Expand All @@ -106,7 +106,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: chezmoi2-macos-amd64
path: dist/chezmoi2-nocgo_darwin_amd64/chezmoi
path: dist/chezmoi2-nocgo_darwin_amd64/chezmoi2
- name: Artifact chezmoi-windows-amd64
uses: actions/upload-artifact@v2
with:
Expand All @@ -116,7 +116,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: chezmoi2-windows-amd64
path: dist/chezmoi2-nocgo_windows_amd64/chezmoi.exe
path: dist/chezmoi2-nocgo_windows_amd64/chezmoi2.exe
generate:
runs-on: ubuntu-18.04
steps:
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ builds:
- goos: linux
goarch: amd64
- id: chezmoi2-cgo-glibc
binary: chezmoi2
main: ./chezmoi2/main.go
env:
- CGO_ENABLED=1
Expand All @@ -61,6 +62,7 @@ builds:
goarch:
- amd64
- id: chezmoi2-cgo-musl
binary: chezmoi2
main: ./chezmoi2/main.go
env:
- CC=/usr/bin/musl-gcc
Expand All @@ -79,6 +81,7 @@ builds:
- '-linkmode external'
- '--extldflags "-static"'
- id: chezmoi2-nocgo
binary: chezmoi2
main: ./chezmoi2/main.go
env:
- CGO_ENABLED=0
Expand Down
2 changes: 1 addition & 1 deletion chezmoi2/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ func (c *Config) marshal(formatStr string, data interface{}) error {

func (c *Config) newRootCmd() (*cobra.Command, error) {
rootCmd := &cobra.Command{
Use: "chezmoi",
Use: "chezmoi2",
Short: "Manage your dotfiles across multiple diverse machines, securely",
Version: c.versionStr,
PersistentPreRunE: c.persistentPreRunRootE,
Expand Down
Loading

0 comments on commit dad2040

Please sign in to comment.