-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Requested by @luoliwoshang in #612
Current Situation
The goplus/lib version is currently hardcoded in cl/internal/convert/convert.go:46:
loadDeps := []string{"github.com/goplus/lib@v0.3.1"}Problem
Having the version hardcoded makes it difficult to:
- Update the version without modifying source code
- Allow users to specify their preferred version
- Test with different versions of goplus/lib
- Maintain backwards compatibility when needed
Proposed Solution
Consider making the goplus/lib version configurable through:
- Configuration file option in
llcppg.cfg - Command-line flag (e.g.,
--goplus-lib-version) - Environment variable
- Default to latest stable version if not specified
Benefits
- More flexible for users with different requirements
- Easier to update without code changes
- Better support for testing and development
- Cleaner separation of configuration from code
Related
- PR chore: update llcppg to generate go.mod with goplus/lib v0.3.1 #612 updated the hardcoded version from v0.2.0 to v0.3.1
- Issue update the generated
goplus/libuse the latest version #611 requested the version update
This issue is for discussing and implementing a more flexible approach to version management.
Metadata
Metadata
Assignees
Labels
No labels