-
-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: disable version check for use as an external library #1938
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @leaanthony.
Just a thought before this is merged. I don't think we should require users of our library to set a DisableVersionCheck
flag to make Task work as package. I feel like this should be the default behaviour and our CLI entrypoint should enable it instead (basically, the reverse of this PR).
I actually agree with you. This got me over the line but yeah adding the in the CLI and not |
@pd93 - Updated the PR to run the version initialisation on cli startup. Tidied the version output if there is no sum. |
504a0da
to
89e7b35
Compare
// Initialise version | ||
ver.Init() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer required after the discussed changes
Thanks @leaanthony. Manually merged as 69f5714. |
This PR adds an internal flag to the executor to disable version checks. This is to ensure that any application that uses Task as a library doesn't error when Task checks the buildinfo.
This PR also renames
close
tocloser
intask.go
as it clashes with the keyword `close.