rlsbl.registries.go

Go registry adapter for rlsbl.

DEPRECATED: This module is retained for backward compatibility with code that imports bare functions (e.g. go.read_version()) or patches module-level symbols (e.g. rlsbl.registries.go.run). New code should use rlsbl.targets.GoTarget instead. Scheduled for removal in the next major version.

Go projects use a VERSION file as the source of truth for rlsbl. GoReleaser handles the build/publish step triggered by the GitHub Release that rlsbl creates.

Functions

read_version

def read_version(dir_path)

Read version from the VERSION file.

write_version

def write_version(dir_path, version)

Write the new version to the VERSION file.

get_version_file

def get_version_file()

Returns the filename that holds the version for this registry.

get_template_dir

def get_template_dir()

Returns path to the go-specific template directory.

get_shared_template_dir

def get_shared_template_dir()

Returns path to the shared template directory.

get_template_vars

def get_template_vars(dir_path)

Extract template variables from go.mod.

get_template_mappings

def get_template_mappings()

Returns go-specific template mappings (template file -> target path).

get_shared_template_mappings

def get_shared_template_mappings()

Returns shared template mappings.

check_project_exists

def check_project_exists(dir_path)

Returns True if a go.mod exists in the given directory.

get_project_init_hint

def get_project_init_hint()

Hint for users who haven't initialized their project yet.