Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Commit c47d491

Browse files
authored
Merge pull request #235 from cdr/gzip-releases
Gzip releases
2 parents eeaae6e + 98808a1 commit c47d491

14 files changed

+28
-18
lines changed

autocomplete.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"unicode/utf8"
77

88
"github.com/posener/complete"
9+
910
"go.coder.com/cli"
1011
)
1112

chrome.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ import (
1515
"time"
1616
"unsafe"
1717

18-
"go.coder.com/cli"
19-
"go.coder.com/flog"
2018
"golang.org/x/xerrors"
2119
"nhooyr.io/websocket"
2220
"nhooyr.io/websocket/wsjson"
21+
22+
"go.coder.com/cli"
23+
"go.coder.com/flog"
2324
)
2425

2526
func runNativeMsgHost() {

ci/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ build(){
1010
go build -ldflags "-X main.version=${tag}" -o $tmpdir/sail
1111

1212
pushd $tmpdir
13-
tarname=sail-$GOOS-$GOARCH.tar
14-
tar -cf $tarname sail
13+
tarname=sail-$GOOS-$GOARCH.tar.gz
14+
tar -czf $tarname sail
1515
popd
1616
cp $tmpdir/$tarname bin
1717
rm -rf $tmpdir
1818
}
1919

2020
GOOS=darwin build
21-
GOOS=linux build
21+
GOOS=linux build

codeserver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ import (
1414
"strings"
1515
"time"
1616

17+
"golang.org/x/xerrors"
18+
1719
"go.coder.com/flog"
1820
"go.coder.com/sail/internal/codeserver"
19-
"golang.org/x/xerrors"
2021
)
2122

2223
// loadCodeServer produces a path containing the code-server binary.

config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"strings"
88

99
"github.com/BurntSushi/toml"
10+
1011
"go.coder.com/flog"
1112
)
1213

editcmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import (
99
"time"
1010

1111
"github.com/docker/docker/api/types"
12+
"golang.org/x/xerrors"
1213

1314
"go.coder.com/cli"
1415
"go.coder.com/flog"
1516
"go.coder.com/sail/internal/dockutil"
1617
"go.coder.com/sail/internal/editor"
1718
"go.coder.com/sail/internal/randstr"
1819
"go.coder.com/sail/internal/xexec"
19-
"golang.org/x/xerrors"
2020
)
2121

2222
type editcmd struct {

globalflags.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"os/exec"
66

77
"github.com/fatih/color"
8+
89
"go.coder.com/flog"
910
)
1011

hat_builder.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ import (
1010
"strings"
1111

1212
"github.com/docker/docker/client"
13+
"golang.org/x/xerrors"
14+
1315
"go.coder.com/flog"
1416
"go.coder.com/sail/internal/hat"
1517
"go.coder.com/sail/internal/xexec"
16-
"golang.org/x/xerrors"
1718
)
1819

1920
// hatBuilder is responsible for applying a hat to a base image.

internal/browserapp/open.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"os/exec"
88

99
"github.com/pkg/browser"
10+
1011
"go.coder.com/sail/internal/nohup"
1112
)
1213

internal/codeserver/proc.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"strconv"
55
"strings"
66

7-
"go.coder.com/sail/internal/dockutil"
87
"golang.org/x/xerrors"
8+
9+
"go.coder.com/sail/internal/dockutil"
910
)
1011

1112
var (

internal/hat/hat.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import (
55
"bytes"
66
"io/ioutil"
77

8-
"go.coder.com/sail/internal/xexec"
98
"golang.org/x/xerrors"
9+
10+
"go.coder.com/sail/internal/xexec"
1011
)
1112

1213
// DockerReplaceFrom replaces the FROM clause in a Dockerfile

lscmd.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import (
1010

1111
"github.com/docker/docker/api/types"
1212
"github.com/docker/docker/api/types/filters"
13+
"golang.org/x/xerrors"
14+
1315
"go.coder.com/cli"
1416
"go.coder.com/flog"
15-
"golang.org/x/xerrors"
1617
)
1718

1819
type lscmd struct {

project.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ import (
88
"strings"
99
"time"
1010

11-
"go.coder.com/sail/internal/dockutil"
11+
"github.com/docker/docker/api/types"
12+
"golang.org/x/xerrors"
1213

14+
"go.coder.com/flog"
1315
"go.coder.com/sail/internal/browserapp"
1416
"go.coder.com/sail/internal/codeserver"
15-
16-
"github.com/docker/docker/api/types"
17-
"go.coder.com/flog"
17+
"go.coder.com/sail/internal/dockutil"
1818
"go.coder.com/sail/internal/xexec"
19-
"golang.org/x/xerrors"
2019
)
2120

2221
type projectStatus string

proxycmd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ import (
1212
"net/http"
1313
"net/http/httputil"
1414
"net/url"
15-
"nhooyr.io/websocket"
1615
"strconv"
1716
"sync"
1817
"sync/atomic"
1918
"time"
2019

20+
"golang.org/x/xerrors"
21+
"nhooyr.io/websocket"
22+
2123
"go.coder.com/cli"
2224
"go.coder.com/flog"
23-
"golang.org/x/xerrors"
2425
)
2526

2627
func codeServerProxy(w http.ResponseWriter, r *http.Request, port string) {

0 commit comments

Comments
 (0)