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

Unable to install with msys #239

Closed
Merith-TK opened this issue Jul 25, 2019 · 8 comments
Closed

Unable to install with msys #239

Merith-TK opened this issue Jul 25, 2019 · 8 comments

Comments

@Merith-TK
Copy link

I get this issue while installing, using instructions from https://sail.dev/docs/installation/
build go.coder.com/sail: cannot load go.coder.com/sail/internal/editor: no Go source files

any idea why?

$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\ShitNuggit\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:/Miscellaneous/msys/usr/local/gopath
set GOPROXY=
set GORACE=
set GOROOT=c:\go
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Miscellaneous\msys\home\ShitNuggit\src\sail\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Miscellaneous\msys\tmp\go-build634270934=/tmp/go-build -gno-record-gcc-switches
@Merith-TK
Copy link
Author

Merith-TK commented Jul 25, 2019 via email

@deansheather
Copy link
Member

deansheather commented Jul 26, 2019

GOHOSTOS=windows

Sail only supports Linux and Darwin. If you look in sail/internal/editor/editor.go you'll notice that it is setup so it only builds on Linux and Darwin.

Please refer to #210 and #151.

@teddy-codes
Copy link
Contributor

What is the reason why it only builds on linux and darwin? Is there a specific thing that is blocking it from being built on windows? * beside the derivatives at the top of the file*

@deansheather
Copy link
Member

Not sure. It's probably because most Linux distros (and Darwin) include vim out of the box. Windows doesn't have vim or any other good editor out of the box.

cc: @ammario

@teddy-codes
Copy link
Contributor

Notepad:tm:

@ammario
Copy link
Member

ammario commented Jul 27, 2019

I don't think there's anything preventing it from being built or ran on Windows. Just need to try and see what happens.

@Merith-TK
Copy link
Author

Merith-TK commented Jul 27, 2019

I actually modified the parts the make it freak out, and gives me a random syscall error thing, will post outputs once windows finishes updating.

Also, why not use the default EDITOR variable on Linux environments? All Msys is, is pretty much a file system (as loose as that term can be used) compatibility between windows and Linux,

@teddy-codes
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants