fix: disable version check for use as an external library

Closes #1938
This commit is contained in:
Lea Anthony
2024-12-07 09:11:37 +11:00
committed by Andrey Nering
parent b3e4cfcf48
commit 69f5714e45
4 changed files with 32 additions and 23 deletions

View File

@@ -246,6 +246,9 @@ func (e *Executor) setupConcurrencyState() {
}
func (e *Executor) doVersionChecks() error {
if !e.EnableVersionCheck {
return nil
}
// Copy the version to avoid modifying the original
schemaVersion := &semver.Version{}
*schemaVersion = *e.Taskfile.Version