Skip to content

internal/target:read targets consist use LLGoROOT#1245

Merged
xushiwei merged 1 commit intogoplus:mainfrom
luoliwoshang:llgo/targetsdir
Aug 28, 2025
Merged

internal/target:read targets consist use LLGoROOT#1245
xushiwei merged 1 commit intogoplus:mainfrom
luoliwoshang:llgo/targetsdir

Conversation

@luoliwoshang
Copy link
Member

@luoliwoshang luoliwoshang commented Aug 28, 2025

Replace hardcoded runtime.Caller() path calculation with env.LLGoROOT() in targets resolver for consistency with runtime directory resolution.
This aligns targets directory resolution with the existing runtime directory resolution strategy.

// Assume targets directory is relative to this package
_, filename, _, _ := runtime.Caller(0)
projectRoot := filepath.Dir(filepath.Dir(filepath.Dir(filename)))
projectRoot := env.LLGoROOT()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Rename to llgoRoot

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@codecov
Copy link

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.80%. Comparing base (cf2d1ef) to head (b68686e).
⚠️ Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1245      +/-   ##
==========================================
- Coverage   87.80%   87.80%   -0.01%     
==========================================
  Files          35       35              
  Lines        8941     8939       -2     
==========================================
- Hits         7851     7849       -2     
  Misses        979      979              
  Partials      111      111              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@xushiwei xushiwei merged commit 71353ba into goplus:main Aug 28, 2025
34 checks passed
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.

3 participants