-
Notifications
You must be signed in to change notification settings - Fork 45
[WIP]feat: support llpkg for building #1213
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
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
78e4d73
to
5a9e896
Compare
if runtime.GOOS == "darwin" { | ||
buildArgs = append(buildArgs, "-Wl,-t", "-Wl,-map,symbol.map") | ||
} else { | ||
buildArgs = append(buildArgs, "-Wl,--Map=symbol.map") | ||
} |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
internal/llpkg/installer/fetch.go
Outdated
// 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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outputDir seem not used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 05b1a1b
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