feat(release): add gastown-release molecule formula
Adds a workflow formula for Gas Town releases with: - Workspace preflight checks (uncommitted work, stashes, branches) - CHANGELOG.md and info.go versionChanges updates - Version bump via bump-version.sh - Local install and daemon restart - Error handling guidance for crew vs polecat execution
This commit is contained in:
committed by
Steve Yegge
parent
5badb54048
commit
cd67eae044
@@ -48,10 +48,12 @@ func Find(startDir string) (string, error) {
|
||||
primaryMatch = current
|
||||
}
|
||||
|
||||
if secondaryMatch == "" {
|
||||
if info, err := os.Stat(filepath.Join(current, SecondaryMarker)); err == nil && info.IsDir() {
|
||||
secondaryMatch = current
|
||||
}
|
||||
// Always keep updating secondaryMatch to find the outermost mayor/ directory.
|
||||
// This handles nested structures where rigs have their own mayor/ directories
|
||||
// but only the town root should be detected as the workspace.
|
||||
// The primary marker (mayor/town.json) is authoritative and returns early above.
|
||||
if info, err := os.Stat(filepath.Join(current, SecondaryMarker)); err == nil && info.IsDir() {
|
||||
secondaryMatch = current
|
||||
}
|
||||
|
||||
parent := filepath.Dir(current)
|
||||
|
||||
Reference in New Issue
Block a user