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

refactor(modcache): manually resolve GOMODCACHE for Wasm environment #90

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

aofei
Copy link
Member

@aofei aofei commented Jan 9, 2025

Since exec.Command is not available in Wasm environment, we resolve GOMODCACHE by directly checking environment variables following Go's standard behavior.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.41%. Comparing base (70d7171) to head (2f14ef2).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
+ Coverage   91.02%   91.41%   +0.39%     
==========================================
  Files           6        6              
  Lines         769      769              
==========================================
+ Hits          700      703       +3     
+ Misses         49       47       -2     
+ Partials       20       19       -1     

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

Since `exec.Command` is not available in Wasm environment, we resolve
`GOMODCACHE` by directly checking environment variables following Go's
standard behavior.

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@xushiwei xushiwei merged commit 993a0ff into goplus:main Jan 10, 2025
14 checks passed
@aofei aofei deleted the GOMODCACHE branch January 10, 2025 06:01
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.

2 participants