Skip to content
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

Remove autoloaded extensions #1603

Merged

Conversation

RebeccaMahany
Copy link
Contributor

We can't expect to find autoloaded extensions based on the current executable anymore, because the current executable may live in the new updates directory outside of the install (bin) directory. We don't use this flag and we don't imagine that it has widespread use elsewhere either, so we're opting to remove it.

@RebeccaMahany RebeccaMahany marked this pull request as ready for review February 14, 2024 21:49
Copy link
Contributor

@James-Pickett James-Pickett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@@ -317,10 +317,10 @@ func getPossibleUpdates(ctx context.Context, updateDir, binaryName string) ([]st
return possibleUpdates, nil
}

// FindBaseDir takes a binary path, that may or may not include the
// findBaseDir takes a binary path, that may or may not include the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this, and anything else in the FindNewest?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we fall back to the legacy autoupdate library currently if there's nothing in the new library. We can definitely get rid of that at some point, but I wasn't in a rush to rip that part out as quickly.

@RebeccaMahany RebeccaMahany added this pull request to the merge queue Feb 15, 2024
Merged via the queue into kolide:main with commit 91822ad Feb 15, 2024
26 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/deprecate-autoloaded-exts branch February 15, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants