Skip to content

Conversation

MeteorsLiu
Copy link
Contributor

@MeteorsLiu MeteorsLiu commented Aug 12, 2025

Rewrited version of #1048.
There's too many historical codes in #1048, have to refine.

Design: https://github.com/goplus/llpkgstore/blob/main/docs/llpkgstore.md

@MeteorsLiu MeteorsLiu changed the title feat: support llpkg for building [WIP]feat: support llpkg for building Aug 13, 2025
@MeteorsLiu MeteorsLiu marked this pull request as draft August 13, 2025 03:45
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.83%. Comparing base (b2c6534) to head (05b1a1b).

Files with missing lines Patch % Lines
internal/llpkg/installer/fetch.go 85.07% 7 Missing and 3 partials ⚠️
internal/llpkg/installer/ghrelease/ghrelease.go 60.86% 6 Missing and 3 partials ⚠️
internal/llpkg/llpkg.go 82.14% 4 Missing and 1 partial ⚠️
internal/llpkg/installer/pcgen/pcgen.go 91.42% 2 Missing and 1 partial ⚠️
internal/taskqueue/taskqueue.go 86.95% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1213      +/-   ##
==========================================
- Coverage   87.94%   87.83%   -0.11%     
==========================================
  Files          32       38       +6     
  Lines        7657     7837     +180     
==========================================
+ Hits         6734     6884     +150     
- Misses        844      865      +21     
- Partials       79       88       +9     

☔ 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.

@MeteorsLiu MeteorsLiu marked this pull request as ready for review August 14, 2025 03:56
@MeteorsLiu MeteorsLiu changed the title [WIP]feat: support llpkg for building feat: support llpkg for building Aug 14, 2025
test: fix special module path test

test: fix zip test

test: fix assert url test

test: add ghrelease test

test: remove unused test codes

test: add more tests about failure case

test: add more tests for module version

test: add tests for module version in installer

test: add tests for pcgen

test: optimize tests

test: add more tests for pcgen
Comment on lines +672 to +676
if runtime.GOOS == "darwin" {
buildArgs = append(buildArgs, "-Wl,-t", "-Wl,-map,symbol.map")
} else {
buildArgs = append(buildArgs, "-Wl,--Map=symbol.map")
}
Copy link
Member

Choose a reason for hiding this comment

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

the generated symbol.map file might be misunderstood as a build artifact, especially since we haven't established where debug outputs should go yet.

// InstallBinary installs a binary package using the default GitHub release installer.
// It takes an LLPkgConfig containing package information and an output directory path.
// Returns any error encountered during the installation process.
func InstallBinary(llpkgConfig LLPkgConfig, outputDir string) error {
Copy link
Member

Choose a reason for hiding this comment

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

InstallBinary may lead some misunderstand.beacuse the artifacts of llpkg also have the pc file.

// The caller is responsible for cleaning up the temporary file when no longer needed.
func DownloadFile(url, outputDir string) (fileName string, err error) {
// make sure path exists
if err := os.MkdirAll(outputDir, 0700); err != nil {
Copy link
Member

Choose a reason for hiding this comment

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

outputDir seem not used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 05b1a1b

@MeteorsLiu MeteorsLiu changed the title feat: support llpkg for building [WIP]feat: support llpkg for building Aug 15, 2025
@MeteorsLiu MeteorsLiu marked this pull request as draft August 15, 2025 04:09
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