mdodell
(Mitchell Dodell)
June 15, 2020, 6:49pm
1
I tried to start Secretless on my local machine after following the documentation from the secretless-broker Github repository.
After pulling the repository, I tried to run ./bin/build_darwin
in order to build out the OSX binary.
However, after doing so, there seems to be an error in the script logs:
mdodell@MITCHELL-D secretless-broker % ./bin/build_darwin
++ dirname ./bin/build_darwin
+ pushd ./bin/..
~/Desktop/secretless/secretless-broker ~/Desktop/secretless/secretless-broker
+ trap popd EXIT INT TERM
+ echo 'Building for darwin/amd64'
Building for darwin/amd64
+ mkdir -p dist/darwin/amd64
+ env GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/secretless-broker ./cmd/secretless-broker
go: github.com/denisenkom/go-mssqldb@v0.0.0-20191001013358-cfbb681360f0: parsing third_party/go-mssqldb/go.mod: open /Users/mdodell/Desktop/secretless/secretless-broker/third_party/go-mssqldb/go.mod: no such file or directory
+ popd
it looks like it cannot find that go.mod
file, which it is trying to get from that remote Github repository.
Does anyone have any advice?
izgerij
(Geri Jennings)
June 15, 2020, 7:57pm
2
This looks like a submodule problem - from the contributing guide you should clone the project with --recurse -submodules
, but if you didn’t you can run git fetch --recurse-submodules
.
Does this solve your problem? I suspect that right now the third_party/go-mssqldb/
folder is empty in your repo clone, but running the command above should populate it with the right code. Let us know how it goes
1 Like
mdodell
(Mitchell Dodell)
June 15, 2020, 8:31pm
3
git fetch --recurse-submodules
did not work, but I removed the repository and recloned with the new tags and that worked.
Thank you !
1 Like
izgerij
(Geri Jennings)
June 15, 2020, 9:10pm
4
Thanks for sharing how it went - it looks like in the past I’ve used git submodule update --init --recursive
after cloning to populate the submodules.
I made an update to the contributing instructions here that will hopefully help others avoid this issue: https://github.com/cyberark/secretless-broker/pull/1250 .
1 Like
jake
(Jake)
June 18, 2020, 3:31pm
5
This worked for me! @mdodell can you mark this as the solution?
system
(system)
Closed
June 25, 2020, 3:31pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.