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
This issue is for discussing and implementing a more flexible approach to version management.
Requested by @luoliwoshang in #612
Current Situation
The
goplus/libversion is currently hardcoded incl/internal/convert/convert.go:46:Problem
Having the version hardcoded makes it difficult to:
Proposed Solution
Consider making the
goplus/libversion configurable through:llcppg.cfg--goplus-lib-version)Benefits
Related
goplus/libuse the latest version #611 requested the version updateThis issue is for discussing and implementing a more flexible approach to version management.