From db7128d627d3141858b408708236495189744729 Mon Sep 17 00:00:00 2001 From: Georgi Matev Date: Tue, 20 Sep 2022 15:06:38 -0400 Subject: [PATCH] Fix docs dev build when dependencies are not installed (#915) Make sure dependencies are properly installed before building ## Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Test - [ ] :computer: CI/Deployment - [ ] :hamster: Trivial/Minor ## Issue(s) ## Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- docs/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/Makefile b/docs/Makefile index dd666f4fd..14466fb06 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -54,6 +54,13 @@ genclidocs: ${MDGEN_BINARY} ${MDGEN_BINARY}: $(shell find ../src -type f -name *.go) $(shell find ../src -type d ) @echo 'Re-building Corso CLI docs auto-gen tooling...' + docker run --rm -it \ + -v ${CORSO_REPO}:${CORSO_REPO_CONTAINER} -v ${CORSO_BUILD_DIR}:${CORSO_BUILD_DIR} \ + --env GOCACHE=${CORSO_BUILD_CACHE} --env GOMODCACHE=${CORSO_BUILD_MOD} --env GOTMPDIR=${CORSO_BUILD_DIR} \ + --workdir ${CORSO_REPO_CONTAINER}/src \ + --entrypoint /usr/local/go/bin/go \ + golang:1.18 \ + mod tidy docker run --rm -it \ -v ${CORSO_REPO}:${CORSO_REPO_CONTAINER} -v ${CORSO_BUILD_DIR}:${CORSO_BUILD_DIR} \ --env GOCACHE=${CORSO_BUILD_CACHE} --env GOMODCACHE=${CORSO_BUILD_MOD} --env GOTMPDIR=${CORSO_BUILD_DIR} \