mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
26 lines
491 B
Bash
Executable File
26 lines
491 B
Bash
Executable File
#!/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
|
|
|
|
if [ "$BUILD_PLAYBOOKS" == "true" ]
|
|
then
|
|
txt="${txt}use ../../mattermost-plugin-playbooks\n"
|
|
fi
|
|
|
|
if [ "$USE_LOCAL_PLUGIN_API" == "true" ]
|
|
then
|
|
txt="${txt}use ../../mattermost-plugin-api\n"
|
|
fi
|
|
|
|
printf "$txt" > "go.work"
|
|
fi
|