mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
Require (linux || freebsd), because the code already does that, in practice. This just means macOS users of IDEs aren't hit with thousands of compilation errors (and then the IDE can open an Linux-specific file and then process it under the Linux assumption, which works much better). This commit contains the parts that differ somehow. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
16 lines
429 B
Go
16 lines
429 B
Go
//go:build !remote && ((linux && !systemd) || freebsd)
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"github.com/containers/podman/v6/libpod/define"
|
|
"github.com/containers/podman/v6/libpod/logs"
|
|
)
|
|
|
|
func (c *Container) readFromJournal(_ context.Context, _ *logs.LogOptions, _ chan *logs.LogLine, _ int64, _ string) error {
|
|
return fmt.Errorf("journald logging only enabled with systemd on linux: %w", define.ErrOSNotSupported)
|
|
}
|