Describe the bug
Running the build.sh script on windows (using git bash) causes errors.
To Reproduce
Git clone the repository (on windows)
Run the build.sh file (using git bash)
Get errors.
Expected behavior
The build.sh script should successfully generate bindings.
Screenshots
N/A
go env Response
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Harry\AppData\Local\go-build
set GOENV=C:\Users\Harry\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Harry\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=c:\go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
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:\Users\Harry\AppData\Local\Temp\go-build395543846=/tmp/go-build -gno-record-gcc-switches
Additional context
The log output of running build.sh:
======= Converting Header Files
Processing Command
Failed: RLAPI void TraceLog(int logType, const char *text, ...); // Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR)
Processing Command
Processing Command
Processing Command
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Processing Command
Processing Command
Processing Command
Processing Command
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
OOP: UpdateCamera
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Processing Command
Processing Command
OOP: ExportImage
OOP: ExportImageAsCode
OOP: UnloadImage
OOP: UnloadTexture
OOP: UnloadRenderTexture
OOP: GetImageAlphaBorder
OOP: GetTextureData
OOP: ImageCopy
OOP: ImageToPOT
OOP: ImageAlphaMask
OOP: ImageAlphaClear
OOP: ImageAlphaCrop
OOP: ImageAlphaPremultiply
OOP: ImageCrop
OOP: ImageResize
OOP: ImageResizeNN
OOP: ImageResizeCanvas
OOP: ImageDither
Processing Command
Processing Command
OOP: ImageDraw
OOP: ImageDrawRectangle
OOP: ImageDrawRectangleLines
OOP: ImageDrawText
OOP: ImageDrawTextEx
OOP: ImageFlipVertical
OOP: ImageFlipHorizontal
OOP: ImageRotateCW
OOP: ImageRotateCCW
OOP: ImageColorTint
OOP: ImageColorInvert
OOP: ImageColorGrayscale
OOP: ImageColorContrast
OOP: ImageColorBrightness
OOP: ImageColorReplace
OOP: GenTextureMipmaps
OOP: SetTextureFilter
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
OOP: GenImageFontAtlas
Failed: RLAPI Image GenImageFontAtlas(const CharInfo *chars, Rectangle **recs, int charsCount, int fontSize, int padding, int packMethod); // Generate image font atlas using chars info
OOP: UnloadFont
Processing Command
Processing Command
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Processing Command
OOP: UnloadModel
Failed: RLAPI Mesh *LoadMeshes(const char *fileName, int *meshCount); // Load meshes from model file
OOP: ExportMesh
OOP: UnloadMesh
Failed: RLAPI Material *LoadMaterials(const char *fileName, int *materialCount); // Load materials from model file
OOP: UnloadMaterial
OOP: SetModelMeshMaterial
OOP: UpdateModelAnimation
OOP: UnloadModelAnimation
OOP: IsModelAnimationValid
OOP: GenMeshHeightmap
OOP: GenMeshCubicmap
OOP: MeshBoundingBox
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Processing Command
Processing Command
OOP: UnloadShader
OOP: GetShaderLocation
OOP: SetShaderValueMatrix
OOP: SetShaderValueTexture
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
OOP: UpdateSound
OOP: UnloadWave
OOP: UnloadSound
OOP: ExportWave
OOP: ExportWaveAsCode
OOP: PlaySound
OOP: StopSound
OOP: PauseSound
OOP: ResumeSound
OOP: PlaySoundMulti
OOP: IsSoundPlaying
OOP: SetSoundVolume
OOP: SetSoundPitch
OOP: WaveFormat
OOP: WaveCopy
OOP: WaveCrop
OOP: PlayMusicStream
OOP: UpdateMusicStream
OOP: StopMusicStream
OOP: PauseMusicStream
OOP: ResumeMusicStream
OOP: IsMusicPlaying
OOP: SetMusicVolume
OOP: SetMusicPitch
OOP: SetMusicLoopCount
OOP: GetMusicTimeLength
OOP: GetMusicTimePlayed
OOP: IsAudioStreamProcessed
OOP: PlayAudioStream
OOP: PauseAudioStream
OOP: ResumeAudioStream
OOP: IsAudioStreamPlaying
OOP: StopAudioStream
OOP: SetAudioStreamVolume
OOP: SetAudioStreamPitch
Processing Command
Processing Command
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Processing Command
Header: //Generated 2020-01-19T09:25:05-08:00
#include "raylib.h"
#include <stdlib.h>
#include "go.h"
#define RAYGUI_IMPLEMENTATION
Processing Command
Header: //Generated 2020-01-19T09:25:05-08:00
#include "raylib.h"
#include <stdlib.h>
#include "go.h"
#define RAYGUI_IMPLEMENTATION
#define RAYGUI_TEXTBOX_EXTENDED
Processing Command
Header: //Generated 2020-01-19T09:25:05-08:00
#include "raylib.h"
#include <stdlib.h>
#include "go.h"
#define RAYGUI_IMPLEMENTATION
#define RAYGUI_TEXTBOX_EXTENDED
#include "raygui.h"
Formatting...
Failed to format! exec: "goimports": executable file not found in %PATH%
Completed 433 / 436 functions ( 99.31192660550458 % Yield)
======= Copying Generated Files
Audio
cp: cannot stat 'out/audio_gen.go': No such file or directory
Camera
cp: cannot stat 'out/camera_gen.go': No such file or directory
Drawing
cp: cannot stat 'out/drawing_gen.go': No such file or directory
Gestures
cp: cannot stat 'out/gestures_gen.go': No such file or directory
Input
cp: cannot stat 'out/input_gen.go': No such file or directory
Main
cp: cannot stat 'out/main_gen.go': No such file or directory
Models
cp: cannot stat 'out/models_gen.go': No such file or directory
GUI
cp: cannot stat 'out/raygui_gen.go': No such file or directory
Shader
cp: cannot stat 'out/shader_gen.go': No such file or directory
Shapes
cp: cannot stat 'out/shapes_gen.go': No such file or directory
Text
cp: cannot stat 'out/text_gen.go': No such file or directory
Texture
cp: cannot stat 'out/texture_gen.go': No such file or directory
VR
cp: cannot stat 'out/vr_gen.go': No such file or directory
======= Building Library
( this might take a while, please wait )
======= Reporting Lint Issues
======= Finished Succesfully
It says it "Finished Successfully", but it didn't really.
Describe the bug Running the build.sh script on windows (using git bash) causes errors.
To Reproduce
Expected behavior The build.sh script should successfully generate bindings.
Screenshots N/A
go env
ResponseAdditional context The log output of running build.sh:
It says it "Finished Successfully", but it didn't really.