railpack

Configure and troubleshoot Railpack builds, with emphasis on RAILPACK_* environment variables, railpack.json overlays, build-plan inspection, local CLI installation and usage, and local BuildKit containers. Use for Railpack provider configuration, custom install/build/start commands, Mise or Apt packages, build or runtime variables and secrets, generated-plan debugging, BUILDKIT_HOST errors, or running Railpack from a release or source checkout.

Install
npx skills add 'https://github.com/railwayapp/railpack/tree/main/.'
Incomplete bundle · no download
main · 21a254fScanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

core/plan/spread.go

core/plan/spread.goBrowse 1970 files
View on GitHub
← Back to SKILL.md
package plan type Spreadable interface {	IsSpread() bool} type StringWrapper struct {	Value string} func (s StringWrapper) IsSpread() bool {	return s.Value == "..."} func Spread[T Spreadable](left []T, right []T) []T {	if left == nil {		return right	} 	result := make([]T, 0, len(left)+len(right)) 	for _, val := range left {		if val.IsSpread() {			result = append(result, right...)		} else {			result = append(result, val)		}	} 	return result} func SpreadStrings(left []string, right []string) []string {	if left == nil {		return right	} 	result := make([]string, 0, len(left)+len(right)) 	for _, val := range left {		if val == "..." {			result = append(result, right...)		} else {			result = append(result, val)		}	} 	return result}