Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

chore: untangle resolver mixin #194

Merged
merged 10 commits into from
Dec 1, 2023
Merged

Conversation

ysndr
Copy link
Contributor

@ysndr ysndr commented Nov 30, 2023

fixes #189

@ysndr
Copy link
Contributor Author

ysndr commented Nov 30, 2023

only pushed the hh files, classic

@ysndr ysndr force-pushed the fix/ga-registry-flag-segfault branch from 9a3f00b to a662406 Compare December 1, 2023 11:05
include/flox/resolver/mixins.hh Outdated Show resolved Hide resolved
*/
[[nodiscard]] const EnvironmentManifest &
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the rationale for dropping [[nodiscard]] here?

src/resolver/mixins.cc Show resolved Hide resolved
/* -------------------------------------------------------------------------- */

void
EnvironmentManifest
GAEnvironmentMixin::initManifest( ManifestRaw manifestRaw )
{
if ( this->gaRegistry )
{
(void) static_cast<ManifestRawGA>( manifestRaw );
Copy link
Contributor

Choose a reason for hiding this comment

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

non-blocking note:

This type of expression (void) EXPR is how we explicitly discard if we really want to ignore a [[nodiscard]].

This is basically only useful for tests; but wanted to highlight it since it's useful.

src/search/command.cc Show resolved Hide resolved
tests/ga-registry.bats Show resolved Hide resolved
include/flox/resolver/mixins.hh Outdated Show resolved Hide resolved
@aakropotkin aakropotkin added this pull request to the merge queue Dec 1, 2023
Merged via the queue into main with commit 77a5303 Dec 1, 2023
4 checks passed
@aakropotkin aakropotkin deleted the fix/ga-registry-flag-segfault branch December 1, 2023 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bugs when locking a manifest without packages
2 participants