Browse Source

fixing packages

bryanl 2 years ago
parent
commit
7336a2f54f

+ 1
- 1
pkg/system/meminfo_linux.go View File

@@ -7,7 +7,7 @@ import (
7 7
 	"strconv"
8 8
 	"strings"
9 9
 
10
-	"github.com/digitalocean/doctlpkg/units"
10
+	"github.com/digitalocean/doctl/pkg/units"
11 11
 )
12 12
 
13 13
 // ReadMemInfo retrieves memory statistics of the host system and returns a

+ 1
- 1
pkg/system/meminfo_unix_test.go View File

@@ -6,7 +6,7 @@ import (
6 6
 	"strings"
7 7
 	"testing"
8 8
 
9
-	"github.com/digitalocean/doctlpkg/units"
9
+	"github.com/digitalocean/doctl/pkg/units"
10 10
 )
11 11
 
12 12
 // TestMemInfo tests parseMemInfo with a static meminfo string

+ 2
- 2
pkg/term/term_windows.go View File

@@ -11,8 +11,8 @@ import (
11 11
 
12 12
 	"github.com/Azure/go-ansiterm/winterm"
13 13
 	"github.com/Sirupsen/logrus"
14
-	"github.com/digitalocean/doctlpkg/system"
15
-	"github.com/digitalocean/doctlpkg/term/windows"
14
+	"github.com/digitalocean/doctl/pkg/system"
15
+	"github.com/digitalocean/doctl/pkg/term/windows"
16 16
 )
17 17
 
18 18
 // State holds the console mode for the terminal.

+ 1
- 1
scripts/build.sh View File

@@ -2,4 +2,4 @@
2 2
 
3 3
 set -eo pipefail
4 4
 
5
-go build -ldflags "-X github.com/digitalocean/doctlBuild=`git rev-parse --short HEAD`" github.com/digitalocean/doctlcmd/doctl
5
+go build -ldflags "-X github.com/digitalocean/doctl/Build=`git rev-parse --short HEAD`" github.com/digitalocean/doctlcmd/doctl

+ 1
- 1
scripts/stage.sh View File

@@ -29,7 +29,7 @@ rm -f $STAGE_DIR/doctl $STAGE_DIR/doctl.exe
29 29
 
30 30
 if [[ -z $SKIPBUILD ]]; then
31 31
   echo "building doctl"
32
-  baseFlag="-X github.com/digitalocean/doctl
32
+  baseFlag="-X github.com/digitalocean/doctl"
33 33
   ldflags="${baseFlag}.Build=$(git rev-parse --short HEAD) $baseFlag.Major=${major} $baseFlag.Minor=${minor} $baseFlag.Patch=${patch}"
34 34
   if [[ -n "$label" ]]; then
35 35
     ldflags="${ldflags} $baseFlag.Label=${label}"