Skip to content

Commit 96ba0a9

Browse files
committed
Merge remote-tracking branch 'origin/main' into test-improvements
2 parents 8697c80 + 09cfb45 commit 96ba0a9

File tree

4 files changed

+27
-19
lines changed

4 files changed

+27
-19
lines changed

.goreleaser.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ builds:
2626
-X "github.com/jahvon/flow/cmd/internal/version.buildDate={{ .Date }}"
2727
2828
gomod:
29-
proxy: true
29+
proxy: false
3030

3131
archives:
32-
- format: tar.gz
32+
- formats: [ 'tar.gz' ]
3333
files:
3434
- LICENSE
3535
- README.md
@@ -40,25 +40,29 @@ archives:
4040
{{- .Os }}_
4141
{{- .Arch }}
4242
43-
brews:
43+
homebrew_casks:
4444
- name: flow
45+
binary: flow
46+
conflicts:
47+
- formula: flow
4548
homepage: https://flowexec.io
4649
license: Apache-2.0
47-
directory: Formula
4850
repository:
4951
owner: jahvon
5052
name: homebrew-tap
5153
token: "{{ .Env.HOMEBREW_FLOW_GITHUB_TOKEN }}"
54+
completions:
55+
bash: completions/flow.bash
56+
zsh: completions/flow.zsh
57+
fish: completions/flow.fish
5258
dependencies:
53-
- name: xclip
54-
os: linux
55-
install: |
56-
bin.install "flow"
57-
bash_completion.install "completions/flow.bash"
58-
zsh_completion.install "completions/flow.zsh"
59-
fish_completion.install "completions/flow.fish"
60-
test: |
61-
system "#{bin}/flow --version"
59+
- cask: xclip # Required for clipboard support, only linux, so I need to figure out to get this to skip macOS
60+
hooks:
61+
post:
62+
install: |
63+
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
64+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/flow"]
65+
end
6266
6367
dockers:
6468
- image_templates:

internal/runner/serial/serial.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ func handleExec(
112112
maps.Copy(execPromptedEnv, a)
113113
}
114114
fields := map[string]interface{}{"step": exec.ID()}
115-
exec.Exec.SetLogFields(fields)
115+
if exec.Exec != nil {
116+
exec.Exec.SetLogFields(fields)
117+
}
116118

117119
runExec := func() error {
118120
return runSerialExecFunc(ctx, i, refConfig, exec, eng, execPromptedEnv, serialSpec)

internal/services/store/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func NewStore(dbPath string) (Store, error) {
4747
if dbPath == "" {
4848
dbPath = Path()
4949
}
50-
db, err := bolt.Open(dbPath, 0666, &bolt.Options{Timeout: 5 * time.Second})
50+
db, err := bolt.Open(dbPath, 0666, &bolt.Options{Timeout: 30 * time.Second})
5151
if err != nil {
5252
return nil, fmt.Errorf("failed to open db: %w", err)
5353
}

internal/templates/templates.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,12 @@ func runExecutables(
164164
}
165165
maps.Copy(execEnv, a)
166166
}
167-
exec.Exec.SetLogFields(map[string]interface{}{
168-
"stage": stage,
169-
"step": i + 1,
170-
})
167+
if exec.Exec != nil {
168+
exec.Exec.SetLogFields(map[string]interface{}{
169+
"stage": stage,
170+
"step": i + 1,
171+
})
172+
}
171173
if err := runner.Exec(ctx, exec, engine.NewExecEngine(), execEnv); err != nil {
172174
return errors.Wrap(err, fmt.Sprintf("unable to execute %s executable %d", stage, i))
173175
}

0 commit comments

Comments
 (0)