redite / kleng

tbd
2 stars 1 forks source link

Fix get current working directory #8

Closed wayanjimmy closed 7 years ago

widnyana commented 7 years ago

@wayanjimmy ini kasusnya gimana jim?

wayanjimmy commented 7 years ago

Pakai method utils.GetCWD() entah kenapa mengarah ke directory aneh @widnyana

screen shot 2017-07-02 at 4 32 48 pm

hasssan commented 7 years ago

confirmed, golang 1.8.3 OSX, gvm

widnyana commented 7 years ago

@wayanjimmy @hasssan kalau dari go run memang dan akan selalu begitu. golang bakalan ngebuild dan ngelink seluruh object di temporary directory. dan menjalankan file binary hasil linking tadi dari sana. nah karena behavior ini, jadi sebenernya ngga ada yang aneh dari hasil si utils.GetCWD().

coba flownya diganti jadi gini:

go build -x -v -race -o kleng
./kleng -M [http/populate]
widnyana commented 7 years ago

ada Makefile kalau mau dicontek https://github.com/redite/kleng/blob/feature/populate/Makefile


nanti bisa make build run atau make build populate

wayanjimmy commented 7 years ago

@widnyana nice sudah bisa make build run

widnyana commented 7 years ago

@wayanjimmy Makefilenya sekalian ditarik ke branch master aja jim.

wayanjimmy commented 7 years ago

@widnyana okeh nanti aq include di PR selanjutnya

widnyana commented 7 years ago

@wayanjimmy sip, thanks! :sparkles::cake::sparkles:

hasssan commented 7 years ago

tadi cuma jalanin ./build.sh kirain cara pake begitu.

ntar coba kubantu perbaikin readme 😄