This repository was archived by the owner on Aug 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,13 @@ build(){
29
29
# Darwin builds do not work from Linux, so only try to build them from Darwin.
30
30
# See: https://github.com/cdr/coder-cli/issues/20
31
31
if [[ " $( uname) " == " Darwin" ]]; then
32
- GOOS=linux build
33
32
CGO_ENABLED=1 GOOS=darwin build
33
+ GOOS=linux build
34
34
GOOS=windows GOARCH=386 build
35
35
exit 0
36
36
fi
37
37
38
38
echo " Warning: Darwin builds don't work on Linux."
39
39
echo " Please use an OSX machine to build Darwin tars."
40
40
GOOS=linux build
41
+ GOOS=windows GOARCH=386 build
Original file line number Diff line number Diff line change
1
+ // +build !windows
2
+
1
3
package cmd
2
4
3
5
import (
Original file line number Diff line number Diff line change
1
+ // +build windows
2
+
3
+ package cmd
4
+
5
+ import (
6
+ "github.com/spf13/cobra"
7
+ "golang.org/x/xerrors"
8
+ )
9
+
10
+ func makeSyncCmd () * cobra.Command {
11
+ cmd := & cobra.Command {
12
+ Use : "sync [local directory] [<env name>:<remote directory>]" ,
13
+ Short : "NOT AVAILABLE ON WINDOWS – Establish a one way directory sync to a Coder environment" ,
14
+ RunE : func (_ * cobra.Command , _ []string ) error {
15
+ return xerrors .Errorf (`"coder sync" is not available on Windows` )
16
+ },
17
+ }
18
+ return cmd
19
+ }
You can’t perform that action at this time.
0 commit comments