Skip to content

Commit

Permalink
go: use the /v2 prefix (direnv#765)
Browse files Browse the repository at this point in the history
Fix the usage of Go modules so that `go get` actually installs the
latest version.
  • Loading branch information
zimbatm authored Feb 18, 2021
1 parent 8ed95c0 commit e0d2ae8
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 14 deletions.
3 changes: 0 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ exe = direnv$(shell go env GOEXE)
# Override the go executable
GO = go

# Change if you want to fork direnv
PACKAGE = github.com/direnv/direnv

# BASH_PATH can also be passed to hard-code the path to bash at build time

SHELL = bash
Expand Down
2 changes: 1 addition & 1 deletion cmd_fetchurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path/filepath"
"strings"

"github.com/direnv/direnv/sri"
"github.com/direnv/direnv/v2/sri"
"github.com/mattn/go-isatty"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd_show_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/direnv/direnv/gzenv"
"github.com/direnv/direnv/v2/gzenv"
)

// CmdShowDump is `direnv show_dump`
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"time"

toml "github.com/BurntSushi/toml"
"github.com/direnv/direnv/xdg"
"github.com/direnv/direnv/v2/xdg"
)

// Config represents the direnv configuration and state.
Expand Down
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildGoModule rec {
version = lib.fileContents ./version.txt;
subPackages = [ "." ];

vendorSha256 = "0yhppxrippxayqqs3m7imi0zr7y9zln1krnc7drsi3p2a66xwlwq";
vendorSha256 = "1kmgl3wkbyirqkf7rwlcss8ml7incxclsb36nskwx1w6b1ilphrz";

src = lib.cleanSource ./.;

Expand Down
2 changes: 1 addition & 1 deletion docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Setup a go environment https://golang.org/doc/install

> go >= 1.11 is required
> go >= 1.15 is required
Clone the project:

Expand Down
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"strings"

"github.com/direnv/direnv/gzenv"
"github.com/direnv/direnv/v2/gzenv"
)

// Env is a map representation of environment variables.
Expand Down
2 changes: 1 addition & 1 deletion env_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"strings"

"github.com/direnv/direnv/gzenv"
"github.com/direnv/direnv/v2/gzenv"
)

// IgnoredKeys is list of keys we don't want to deal with
Expand Down
2 changes: 1 addition & 1 deletion file_times.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"time"

"github.com/direnv/direnv/gzenv"
"github.com/direnv/direnv/v2/gzenv"
)

// FileTime represents a single recorded file status
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/direnv/direnv
module github.com/direnv/direnv/v2

go 1.12
go 1.15

require (
github.com/BurntSushi/toml v0.3.1
Expand Down
2 changes: 1 addition & 1 deletion shell_gzenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"errors"

"github.com/direnv/direnv/gzenv"
"github.com/direnv/direnv/v2/gzenv"
)

type gzenvShell int
Expand Down

0 comments on commit e0d2ae8

Please sign in to comment.