-
Notifications
You must be signed in to change notification settings - Fork 43
Defers run in cmd/envbuilder
won't execute because Run performs execve(2)
#364
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
Comments
We could maybe add a Edit: it's simpler to just pass them into |
Merged
johnstcn
added a commit
that referenced
this issue
Sep 27, 2024
Fixes #364 Adds the capability for Run() to run defers defined outside of Run(). Currently the only use-case for this is to close the Coder logger. Also adds an integration test that validates this behaviour and ensures that closeLogs gets called. Co-authored-by: Mathias Fredriksson <[email protected]> (cherry picked from commit 481e3a9)
Need to be careful about LogSenderV2 (see #371); will fix this later. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @mafredri in #359 (comment)
The text was updated successfully, but these errors were encountered: