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

Commit

Permalink
Gzip releases
Browse files Browse the repository at this point in the history
  • Loading branch information
coadler committed Jun 28, 2019
1 parent eeaae6e commit 98808a1
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 18 deletions.
1 change: 1 addition & 0 deletions autocomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"unicode/utf8"

"github.com/posener/complete"

"go.coder.com/cli"
)

Expand Down
5 changes: 3 additions & 2 deletions chrome.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ import (
"time"
"unsafe"

"go.coder.com/cli"
"go.coder.com/flog"
"golang.org/x/xerrors"
"nhooyr.io/websocket"
"nhooyr.io/websocket/wsjson"

"go.coder.com/cli"
"go.coder.com/flog"
)

func runNativeMsgHost() {
Expand Down
6 changes: 3 additions & 3 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ build(){
go build -ldflags "-X main.version=${tag}" -o $tmpdir/sail

pushd $tmpdir
tarname=sail-$GOOS-$GOARCH.tar
tar -cf $tarname sail
tarname=sail-$GOOS-$GOARCH.tar.gz
tar -czf $tarname sail
popd
cp $tmpdir/$tarname bin
rm -rf $tmpdir
}

GOOS=darwin build
GOOS=linux build
GOOS=linux build
3 changes: 2 additions & 1 deletion codeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import (
"strings"
"time"

"golang.org/x/xerrors"

"go.coder.com/flog"
"go.coder.com/sail/internal/codeserver"
"golang.org/x/xerrors"
)

// loadCodeServer produces a path containing the code-server binary.
Expand Down
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

"github.com/BurntSushi/toml"

"go.coder.com/flog"
)

Expand Down
2 changes: 1 addition & 1 deletion editcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"time"

"github.com/docker/docker/api/types"
"golang.org/x/xerrors"

"go.coder.com/cli"
"go.coder.com/flog"
"go.coder.com/sail/internal/dockutil"
"go.coder.com/sail/internal/editor"
"go.coder.com/sail/internal/randstr"
"go.coder.com/sail/internal/xexec"
"golang.org/x/xerrors"
)

type editcmd struct {
Expand Down
1 change: 1 addition & 0 deletions globalflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os/exec"

"github.com/fatih/color"

"go.coder.com/flog"
)

Expand Down
3 changes: 2 additions & 1 deletion hat_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import (
"strings"

"github.com/docker/docker/client"
"golang.org/x/xerrors"

"go.coder.com/flog"
"go.coder.com/sail/internal/hat"
"go.coder.com/sail/internal/xexec"
"golang.org/x/xerrors"
)

// hatBuilder is responsible for applying a hat to a base image.
Expand Down
1 change: 1 addition & 0 deletions internal/browserapp/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"os/exec"

"github.com/pkg/browser"

"go.coder.com/sail/internal/nohup"
)

Expand Down
3 changes: 2 additions & 1 deletion internal/codeserver/proc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"strconv"
"strings"

"go.coder.com/sail/internal/dockutil"
"golang.org/x/xerrors"

"go.coder.com/sail/internal/dockutil"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion internal/hat/hat.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"bytes"
"io/ioutil"

"go.coder.com/sail/internal/xexec"
"golang.org/x/xerrors"

"go.coder.com/sail/internal/xexec"
)

// DockerReplaceFrom replaces the FROM clause in a Dockerfile
Expand Down
3 changes: 2 additions & 1 deletion lscmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (

"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"
"golang.org/x/xerrors"

"go.coder.com/cli"
"go.coder.com/flog"
"golang.org/x/xerrors"
)

type lscmd struct {
Expand Down
9 changes: 4 additions & 5 deletions project.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ import (
"strings"
"time"

"go.coder.com/sail/internal/dockutil"
"github.com/docker/docker/api/types"
"golang.org/x/xerrors"

"go.coder.com/flog"
"go.coder.com/sail/internal/browserapp"
"go.coder.com/sail/internal/codeserver"

"github.com/docker/docker/api/types"
"go.coder.com/flog"
"go.coder.com/sail/internal/dockutil"
"go.coder.com/sail/internal/xexec"
"golang.org/x/xerrors"
)

type projectStatus string
Expand Down
5 changes: 3 additions & 2 deletions proxycmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ import (
"net/http"
"net/http/httputil"
"net/url"
"nhooyr.io/websocket"
"strconv"
"sync"
"sync/atomic"
"time"

"golang.org/x/xerrors"
"nhooyr.io/websocket"

"go.coder.com/cli"
"go.coder.com/flog"
"golang.org/x/xerrors"
)

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

0 comments on commit 98808a1

Please sign in to comment.