Files
mattermost/server/scripts/setup_go_work.sh

26 lines
491 B
Bash
Raw Normal View History

#!/bin/bash
if [[ $1 != "true" ]] ;
then
echo "Creating a go.work file"
txt="go 1.19\n\nuse ./\n"
if [ "$BUILD_ENTERPRISE_READY" == "true" ]
then
txt="${txt}use ../../enterprise\n"
fi
2022-12-29 15:23:09 +04:00
if [ "$BUILD_PLAYBOOKS" == "true" ]
then
txt="${txt}use ../../mattermost-plugin-playbooks\n"
2022-12-29 15:23:09 +04:00
fi
if [ "$USE_LOCAL_PLUGIN_API" == "true" ]
then
txt="${txt}use ../../mattermost-plugin-api\n"
fi
printf "$txt" > "go.work"
2022-12-29 15:23:09 +04:00
fi