gscript icon indicating copy to clipboard operation
gscript copied to clipboard

docker: terminal_check_windows.go:10:2: cannot find package

Open khast3x opened this issue 6 years ago • 0 comments

Hello,

The error happens when generating for a windows binary:

[gscript/docker version:master ~]# gscript compile --enable-logging --os windows --obfuscation-level 3 /myvol/test1.gs
[gscript:cli]  INFO *** COMPILER OPTIONS ***
[gscript:cli]  INFO 
[gscript:cli]  INFO                        OS: windows                                                                 
[gscript:cli]  INFO                      Arch: amd64                                                                   
[gscript:cli]  INFO               Output File: /tmp/1575166006_gscript.bin                                             
[gscript:cli]  INFO      Keep Build Directory: [DISABLED]                                                              
[gscript:cli]  INFO           UPX Compression: [DISABLED]                                                              
[gscript:cli]  INFO           Logging Support: [ENABLED]                                                               
[gscript:cli]  INFO          Debugger Support: [DISABLED]                                                              
[gscript:cli]  INFO       Human Redable Names: [DISABLED]                                                              
[gscript:cli]  INFO   Import All Native Funcs: [DISABLED]                                                              
[gscript:cli]  INFO          Skip Compilation: [DISABLED]                                                              
[gscript:cli]  INFO         Obfuscation Level: ALL OBFUSCATION DISABLED                                                
[gscript:cli]  INFO 
[gscript:cli]  INFO ***  SOURCE SCRIPTS  ***
[gscript:cli]  INFO 
[gscript:cli]  INFO     Script : /myvol/test1.gs                                                         
[gscript:cli]  INFO 
[gscript:cli]  INFO ************************
[gscript:cli]  INFO 
/root/go/src/github.com/sirupsen/logrus/terminal_check_windows.go:10:2: cannot find package "github.com/konsorten/go-windows-terminal-sequences" in any of:
	/opt/go/src/github.com/konsorten/go-windows-terminal-sequences (from $GOROOT)

Solved by running go get github.com/konsorten/go-windows-terminal-sequences .

Similar issue that this one

Cheers!

khast3x avatar Dec 01 '19 02:12 khast3x