Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7.2.3
with:
version: v2.18.0
version: v2.18.2
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ linters:
- modernize
- nakedret
- nestif
- nolintlint
- revive
- staticcheck
- unconvert
Expand All @@ -44,9 +45,12 @@ linters:
disable:
- fieldalignment
revive:
enable-default-rules: true
rules:
- name: exported
disabled: true
nolintlint:
allow-unused: false
misspell:
locale: US
goconst:
Expand Down
1 change: 1 addition & 0 deletions cmd/image/commands.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package image defines the cocoon-macos image commands.
package image

import (
Expand Down
8 changes: 7 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package cmd wires cocoon-macos subcommands.
package cmd

import (
Expand Down Expand Up @@ -78,5 +79,10 @@ func setupLog(ctx context.Context) error {
origStdout := os.Stdout
os.Stdout = os.Stderr
defer func() { os.Stdout = origStdout }()
return log.SetupLog(ctx, &types.ServerLogConfig{Level: level}, "")
return log.SetupLog(ctx, &types.ServerLogConfig{Level: level, UseJSON: !stderrIsTerminal()}, "")
}

func stderrIsTerminal() bool {
fi, err := os.Stderr.Stat()
return err == nil && fi.Mode()&os.ModeCharDevice != 0
}
1 change: 1 addition & 0 deletions cmd/vm/commands.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package vm defines the cocoon-macos vm commands.
package vm

import (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/cocoonstack/cocoon-macos

go 1.27.0
go 1.27.1

require (
github.com/cocoonstack/cocoon v0.6.9-0.20260924025202-dcec1fa3f056
Expand Down
1 change: 1 addition & 0 deletions internal/procutil/terminate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package procutil terminates VMM processes after verifying their command-line identity.
package procutil

import (
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package main is the cocoon-macos entry point.
package main

import "github.com/cocoonstack/cocoon-macos/cmd"
Expand Down
1 change: 1 addition & 0 deletions version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package version holds build-time metadata injected via ldflags.
package version

import (
Expand Down
Loading