buildlayout

package
v0.1.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 9 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 buildlayout holds the local build directory to the estate layout: build/ with one folder per OS and nothing else.

build/
  targets.txt, nfpm.yaml   tracked inputs, when a repository has them
  checksums.txt            SHA-256 over every cross binary, as macos/{binary}_macos_arm64
  macos/ linux/ windows/ freebsd/ …   the binaries, flat
  archives/                only after `make dist`, flat
  icon-sets-sync           the tracked Composer launcher (PHP), not a build output

No build/dist/, no binary at the root of build/, and no folder inside an OS folder or inside archives/. `make build-local`, `make cross` and `make dist` run Check after they write, through ./internal/tools/checkbuild.

Index

Constants

View Source
const AppBundle = Binary + ".app"

AppBundle is the macOS app `make app` writes into build/macos/.

View Source
const ArchivesDir = "archives"

ArchivesDir is the folder `make dist` adds.

View Source
const Binary = "icon-sets-sync"

Binary is the one program this repository builds.

View Source
const ComposerLauncher = Binary

ComposerLauncher is the PHP script composer.json registers as the package's command, so Composer installs it as vendor/bin/icon-sets-sync. It is tracked in build/ rather than in a bin/ folder (owner, 2026-11-13: one folder, and it is build/). It is allowed at the root only while it is that script, so a compiled binary written there by mistake still fails.

Variables

View Source
var WindowsLauncherArchs = []string{"amd64", "arm64", "386"}

WindowsLauncherArchs are the Windows targets the launcher is built for: the same as the binary's Windows builds in src/.goreleaser.yaml.

Functions

func Check

func Check(dir string) (int, []string, error)

Check returns every way dir breaks the layout, and the number of entries it inspected, so a caller can tell an empty build/ from a clean one. A missing dir is an error: there is nothing to vouch for. It also holds build/checksums.txt to the cross binaries: one line per {binary}_* file in the OS folders, named by its path inside build/ (macos/icon-sets-sync_macos_arm64), each hash matching, so `cd build && shasum -a 256 -c checksums.txt` passes.

func IsOSDir

func IsOSDir(name string) bool

IsOSDir reports whether name is one of the OS folders.

func OSToken

func OSToken(goos string) string

OSToken is the folder and artifact name for a GOOS: darwin becomes macos.

func WindowsLauncher

func WindowsLauncher(arch string) string

WindowsLauncher is the launcher's file name for a Windows arch, beside {binary}_windows_{arch}.exe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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