Skip to content

Commit

Permalink
fixed module version
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Feb 22, 2021
1 parent cfef929 commit 3422c17
Show file tree
Hide file tree
Showing 23 changed files with 49 additions and 49 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ build-all:
-CGO_ENABLED=0 gox \
-os="darwin windows" \
-arch="amd64" \
-output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}" \
-output="dist/gdu_{{.OS}}_{{.Arch}}" \
-ldflags="$(LDFLAGS)"

-CGO_ENABLED=0 gox \
-os="linux freebsd netbsd openbsd" \
-output="dist/{{.Dir}}_{{.OS}}_{{.Arch}}" \
-output="dist/gdu_{{.OS}}_{{.Arch}}" \
-ldflags="$(LDFLAGS)"

cd dist; GOFLAGS="$(GOFLAGS)" CGO_ENABLED=0 go build -a -ldflags="$(LDFLAGS)" -o gdu_linux_amd64 ..
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Using curl:

[Go](https://pkg.go.dev/github.com/dundee/gdu):

go get -u github.com/dundee/gdu
go get -u github.com/dundee/gdu/v4


## Usage
Expand Down
2 changes: 1 addition & 1 deletion analyze/dir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"testing"

"github.com/dundee/gdu/internal/testdir"
"github.com/dundee/gdu/v4/internal/testdir"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion analyze/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/dundee/gdu/internal/testdir"
"github.com/dundee/gdu/v4/internal/testdir"
"github.com/stretchr/testify/assert"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"log"
"os"

"github.com/dundee/gdu/build"
"github.com/dundee/gdu/common"
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/stdout"
"github.com/dundee/gdu/tui"
"github.com/dundee/gdu/v4/build"
"github.com/dundee/gdu/v4/common"
"github.com/dundee/gdu/v4/device"
"github.com/dundee/gdu/v4/stdout"
"github.com/dundee/gdu/v4/tui"
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"strings"
"testing"

"github.com/dundee/gdu/device"
"github.com/dundee/gdu/internal/testapp"
"github.com/dundee/gdu/internal/testdev"
"github.com/dundee/gdu/internal/testdir"
"github.com/dundee/gdu/v4/device"
"github.com/dundee/gdu/v4/internal/testapp"
"github.com/dundee/gdu/v4/internal/testdev"
"github.com/dundee/gdu/v4/internal/testdir"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"runtime"

"github.com/dundee/gdu/cmd/app"
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/v4/cmd/app"
"github.com/dundee/gdu/v4/device"
"github.com/gdamore/tcell/v2"
"github.com/mattn/go-isatty"
"github.com/rivo/tview"
Expand Down
4 changes: 2 additions & 2 deletions common/ui.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package common

import (
"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/v4/analyze"
"github.com/dundee/gdu/v4/device"
)

// UI is common interface for both terminal UI and text output
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/dundee/gdu
module github.com/dundee/gdu/v4

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion internal/testanalyze/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"sync"

"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/v4/analyze"
)

// MockedAnalyzer returns dir with files with diferent size exponents
Expand Down
2 changes: 1 addition & 1 deletion internal/testapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package testapp
import (
"errors"

"github.com/dundee/gdu/common"
"github.com/dundee/gdu/v4/common"
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/testdev/dev.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package testdev

import "github.com/dundee/gdu/device"
import "github.com/dundee/gdu/v4/device"

// DevicesInfoGetterMock is mock of DevicesInfoGetter
type DevicesInfoGetterMock struct {
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/dundee/gdu/cmd"
"github.com/dundee/gdu/v4/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions stdout/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"sync"
"time"

"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/v4/analyze"
"github.com/dundee/gdu/v4/device"
"github.com/fatih/color"
)

Expand Down
8 changes: 4 additions & 4 deletions stdout/stdout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"bytes"
"testing"

"github.com/dundee/gdu/device"
"github.com/dundee/gdu/internal/testanalyze"
"github.com/dundee/gdu/internal/testdev"
"github.com/dundee/gdu/internal/testdir"
"github.com/dundee/gdu/v4/device"
"github.com/dundee/gdu/v4/internal/testanalyze"
"github.com/dundee/gdu/v4/internal/testdev"
"github.com/dundee/gdu/v4/internal/testdir"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions tui/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package tui
import (
"path/filepath"

"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/v4/analyze"
"github.com/dundee/gdu/v4/device"
"github.com/rivo/tview"
)

Expand Down
2 changes: 1 addition & 1 deletion tui/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/v4/analyze"
)

func (ui *UI) formatFileRow(item *analyze.File) string {
Expand Down
2 changes: 1 addition & 1 deletion tui/keys.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tui

import (
"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/v4/analyze"
"github.com/gdamore/tcell/v2"
)

Expand Down
8 changes: 4 additions & 4 deletions tui/keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package tui
import (
"testing"

"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/internal/testanalyze"
"github.com/dundee/gdu/internal/testapp"
"github.com/dundee/gdu/internal/testdir"
"github.com/dundee/gdu/v4/analyze"
"github.com/dundee/gdu/v4/internal/testanalyze"
"github.com/dundee/gdu/v4/internal/testapp"
"github.com/dundee/gdu/v4/internal/testdir"
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions tui/sort_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package tui
import (
"testing"

"github.com/dundee/gdu/internal/testanalyze"
"github.com/dundee/gdu/internal/testapp"
"github.com/dundee/gdu/v4/internal/testanalyze"
"github.com/dundee/gdu/v4/internal/testapp"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions tui/tui.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"sort"
"time"

"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/common"
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/v4/analyze"
"github.com/dundee/gdu/v4/common"
"github.com/dundee/gdu/v4/device"
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
)
Expand Down
12 changes: 6 additions & 6 deletions tui/tui_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"runtime"
"testing"

"github.com/dundee/gdu/analyze"
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/internal/testanalyze"
"github.com/dundee/gdu/internal/testapp"
"github.com/dundee/gdu/internal/testdev"
"github.com/dundee/gdu/internal/testdir"
"github.com/dundee/gdu/v4/analyze"
"github.com/dundee/gdu/v4/device"
"github.com/dundee/gdu/v4/internal/testanalyze"
"github.com/dundee/gdu/v4/internal/testapp"
"github.com/dundee/gdu/v4/internal/testdev"
"github.com/dundee/gdu/v4/internal/testdir"
"github.com/gdamore/tcell/v2"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion tui/utils.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tui

import (
"github.com/dundee/gdu/device"
"github.com/dundee/gdu/v4/device"
)

func getDeviceUsagePart(item *device.Device) string {
Expand Down

0 comments on commit 3422c17

Please sign in to comment.