Files
mostlymatter/scripts/setup_go_work.sh
Doug Lauder f4dcffd8d3 Additional Product APIs for Focalboard multi-product architecture (#20527)
* bump focalboard version; add services to product API

* add API to fetch logger

* import boards in same fashion as enterprise
2022-06-23 07:55:50 -04:00

20 строки
400 B
Bash
Исполняемый файл

#!/bin/bash
if [[ ! -f "go.work" ]] ;
then
echo "Creating a go.work file"
txt="go 1.18\n\nuse ./\n"
if [ "$BUILD_ENTERPRISE_READY" == "true" ]
then
txt="${txt}use ../enterprise\n"
fi
if [ "$BUILD_BOARDS" == "true" ]
then
txt="${txt}use ../focalboard/server\nuse ../focalboard/mattermost-plugin\n"
fi
printf "$txt" > "go.work"
fi