Allow ./... as a build target

This commit is contained in:
Patrick Carlisle
2022-06-15 16:51:21 -06:00
committed by Lane Seppala
parent 054f21a184
commit 3b63e35f41
4 changed files with 30 additions and 17 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ async function main () {
}
const goModDir = path.dirname(goModPath)
let goBuildTarget = path.normalize(core.getInput('go-build-target'))
let goBuildTarget = core.getInput('go-build-target')
if (goBuildTarget !== 'all' && goBuildTarget !== '...') {
if (goBuildTarget !== 'all' && goBuildTarget !== './...') {
if (!fs.existsSync(goBuildTarget)) {
throw new Error(`The build target '${goBuildTarget}' does not exist`)
}