Files
mostlymatter/scripts/setup_go_work.sh
Agniva De Sarker 3498592a45 Always regenerate go.work file (#20842)
We flip the default mode to always regenerate the file,
and expose an option to ignore if it exists.

```release-note
NONE
```
2022-08-18 01:11:18 +05:30

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

#!/bin/bash
if [[ $1 != "true" ]] ;
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