Skip to content

proposal: make goplus/lib version configurable instead of hardcoded #613

@fennoai

Description

@fennoai

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:

  1. Update the version without modifying source code
  2. Allow users to specify their preferred version
  3. Test with different versions of goplus/lib
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions