Notes on setting up a Windows environment #210
johnmaguire
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For posterity, since there was a small hangup, here's how I got a Windows environment for building backrest:
choco install git
nvm install lts
nvm use lts
ssh-keygen -t ed25519
git clone https://github.com/garethgeorge/backrest.git
(or your fork)go generate ./...
At this step you will probably receive an error
ERR_DLOPEN_FAILED
for a fileindex.win32-x64-msvc.node
. Follow these instructions to download Microsoft Visual C++ 2015 Redistributable (x64) and then run go generate again.You should now be able to use the normal flow of
go generate ./...
followed bygo [run|build] .
to run or build the program.When running
go test ./...
I get many "Access denied" errors when the tests try to execute restic.exe commands. Running the tests as Administrator resolves the issue - I don't know of another way to avoid it.To run a benchmark, cd into the directory containing its test file and run
go test -bench .
.Beta Was this translation helpful? Give feedback.
All reactions