frameworkinfo

package
v0.51.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package frameworkinfo owns the framework module identity used by development tooling. Go requirements remain owned by the selected module's go.mod.

Index

Constants

View Source
const DeployEntry = "tools/deploy/local/cli.py"
View Source
const GenerationGuard = ".foundry-generate.guard"

GenerationGuard is the persistent advisory-lock inode retained by generation.

View Source
const GenerationManifest = ".foundry-gen.json"
View Source
const ModulePath = "github.com/weiloon1234/Foundry-Go"

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	// Path is the effective module identity, including versioned replacements.
	// Empty denotes ModulePath for callers specifying an official release.
	Path    string
	Version string
}

Build is the framework module version linked into the running tool. Version is empty for development builds and local directory replacements, whose source cannot be identified by a module version.

func CurrentBuild

func CurrentBuild() Build

CurrentBuild reads the running binary's build information. A tool built by `go tool foundry` records the framework as a dependency of the consumer; an installed tool records it as the main module.

func (Build) Check

func (b Build) Check(selected Selection) (bool, error)

Check compares this build with a consumer's selected framework. It reports whether the comparison was possible; an unversioned side is not verifiable. A verified difference is an error because generated output and runtime would come from different framework releases.

type Selection

type Selection struct {
	// Path is the effective module identity; empty denotes ModulePath.
	Path string
	// Main reports that the consumer is the framework module itself.
	Main bool
	// Version is the selected module version, or its versioned replacement.
	Version string
	// Local reports a directory replacement.
	Local bool
}

Selection is the framework module selected by a consumer's build list.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL