buildsource

package
v0.19.1295 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package buildsource prepares pinned build inputs and checks build reuse.

Git-backed component and sandbox flow:

Ref -> pinned commit -> configured directory's tree/blob ID
                                  |
                    Compare source + build config
                   with a verified successful build
                                  |
             +--------------------+--------------------+
             |                                         |
          Unchanged                     Changed / insufficient evidence
             |                                         |
         Reuse build                     Runner checkout at pinned commit
                                                       |
                                            sourceidentity.Verify
                                                       |
                                                  Build tools

Selection uses cached Git metadata, not checkouts or blob downloads. The runner verifies its checkout against the directory's tree and reports every path outside the directory that the build read through sourcefs; the build records each path's Git entry, and reuse requires the directory and every recorded entry to be unchanged.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComponentChecksum

func ComponentChecksum(c *app.ComponentConfigConnection) (string, error)

func DirectoryChanged

func DirectoryChanged(ctx context.Context, vcs *vcshelpers.Helpers, connected *app.ConnectedGithubVCSConfig, public *app.PublicGitVCSConfig, root, baseSHA, headSHA string) (bool, error)

func PreloadConnection

func PreloadConnection(db *gorm.DB) *gorm.DB

func ResolveRef

func ResolveRef(ctx context.Context, db *gorm.DB, vcs *vcshelpers.Helpers, connected *app.ConnectedGithubVCSConfig, public *app.PublicGitVCSConfig, runID, ref string) (string, error)

func SameRepo

func SameRepo(a, b string) bool

func SandboxChecksum

func SandboxChecksum(c *app.AppSandboxConfig) string

func SaveComponent

func SaveComponent(ctx context.Context, db *gorm.DB, id string, identity *sourceidentity.Identity) (*sourceidentity.Identity, error)

func SaveSandbox

func SaveSandbox(ctx context.Context, db *gorm.DB, id string, identity *sourceidentity.Identity) (*sourceidentity.Identity, error)

func SourcesEqual

func SourcesEqual(ctx context.Context, vcs *vcshelpers.Helpers, connected *app.ConnectedGithubVCSConfig, public *app.PublicGitVCSConfig, before, after *sourceidentity.Identity) (bool, error)

func StoredIdentity

func StoredIdentity(sourceChecksum string, i *sourceidentity.Identity) *sourceidentity.Identity

Types

This section is empty.

Jump to

Keyboard shortcuts

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