Skip to content

feat: Consider emscripten a UNIX platform#4168

Merged
jjerphan merged 4 commits into
mamba-org:mainfrom
jjerphan:feat/consider-emscripten-targets-to-be-unix-platform
Feb 19, 2026
Merged

feat: Consider emscripten a UNIX platform#4168
jjerphan merged 4 commits into
mamba-org:mainfrom
jjerphan:feat/consider-emscripten-targets-to-be-unix-platform

Conversation

@jjerphan
Copy link
Copy Markdown
Member

Description

Type of Change

  • Bugfix
  • Feature / enhancement
  • CI / Documentation
  • Maintenance

Checklist

  • My code follows the general style and conventions of the codebase, ensuring consistency
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have run pre-commit run --all locally in the source folder and confirmed that there are no linter errors.
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes

@github-actions github-actions Bot added the release::enhancements For enhancements PRs or implementing features label Feb 19, 2026
@jjerphan jjerphan force-pushed the feat/consider-emscripten-targets-to-be-unix-platform branch from e7f53e6 to 59e0314 Compare February 19, 2026 13:12
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan jjerphan force-pushed the feat/consider-emscripten-targets-to-be-unix-platform branch from 59e0314 to 6d97a01 Compare February 19, 2026 13:27
Comment thread libmamba/src/core/virtual_packages.cpp Outdated
return std::move(override_version).value();
}
// 4.x is assumed to be the latest version used by emscripten-forge.
return { "4.x" };
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could this be the same as the emscripten-abi version from the solve result? Otherwise not sure it makes sense here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, as discussed privately, this version is just placed but not actually used (AFAIK).

I'll add a comment to explain and motivates those changes in details.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If the version is not used, it should be set to something that cannot be considered as a correct version. The comment explaining this is part of the caller instead of this function (which makes sense since it's part of a more global explanation), so maybe it would be better to pass the default version as an argument of this function?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

As discussed privately, we do not need __emscripten, so let's keep something simple.

See fce4662.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.10%. Comparing base (2623a69) to head (fce4662).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4168   +/-   ##
=======================================
  Coverage   52.09%   52.10%           
=======================================
  Files         239      239           
  Lines       28715    28717    +2     
  Branches     3015     3016    +1     
=======================================
+ Hits        14960    14962    +2     
  Misses      13752    13752           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan jjerphan marked this pull request as ready for review February 19, 2026 14:33
@jjerphan jjerphan changed the title feat: Consider emscripten-* targets to be UNIX platform feat: Consider emscripten a UNIX platform Feb 19, 2026
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
@jjerphan jjerphan merged commit 41e3daf into mamba-org:main Feb 19, 2026
37 checks passed
@jjerphan jjerphan deleted the feat/consider-emscripten-targets-to-be-unix-platform branch February 19, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release::enhancements For enhancements PRs or implementing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants