These comments were added to enforce using the correct import path for
our packages ("github.com/docker/docker", not "github.com/moby/moby").
However, when working in go module mode (not GOPATH / vendor), they have
no effect, so their impact is limited.
Remove these imports in preparation of migrating our code to become an
actual go module.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -10,7 +10,7 @@ |
| 10 | 10 |
// |
| 11 | 11 |
// Each container log message generates an ETW event that also contains: |
| 12 | 12 |
// the container name and ID, the timestamp, and the stream type. |
| 13 |
-package etwlogs // import "github.com/docker/docker/daemon/logger/etwlogs" |
|
| 13 |
+package etwlogs |
|
| 14 | 14 |
|
| 15 | 15 |
import ( |
| 16 | 16 |
"context" |
| ... | ... |
@@ -1,6 +1,6 @@ |
| 1 | 1 |
// Package export implements a serializer for the systemd Journal Export Format |
| 2 | 2 |
// as documented at https://systemd.io/JOURNAL_EXPORT_FORMATS/ |
| 3 |
-package export // import "github.com/docker/docker/daemon/logger/journald/internal/export" |
|
| 3 |
+package export |
|
| 4 | 4 |
|
| 5 | 5 |
import ( |
| 6 | 6 |
"encoding/binary" |
| ... | ... |
@@ -7,7 +7,7 @@ |
| 7 | 7 |
// The systemd-journal-remote command reads serialized journal entries in the |
| 8 | 8 |
// Journal Export Format and writes them to journal files. This format is |
| 9 | 9 |
// well-documented and straightforward to generate. |
| 10 |
-package fake // import "github.com/docker/docker/daemon/logger/journald/internal/fake" |
|
| 10 |
+package fake |
|
| 11 | 11 |
|
| 12 | 12 |
import ( |
| 13 | 13 |
"bytes" |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
// Package jsonfilelog provides the default Logger implementation for |
| 2 | 2 |
// Docker logging. This logger logs to files on the host server in the |
| 3 | 3 |
// JSON format. |
| 4 |
-package jsonfilelog // import "github.com/docker/docker/daemon/logger/jsonfilelog" |
|
| 4 |
+package jsonfilelog |
|
| 5 | 5 |
|
| 6 | 6 |
import ( |
| 7 | 7 |
"bytes" |
| ... | ... |
@@ -5,7 +5,7 @@ |
| 5 | 5 |
// factory, which holds the contextual instance information that |
| 6 | 6 |
// allows multiple loggers of the same type to perform different |
| 7 | 7 |
// actions, such as logging to different locations. |
| 8 |
-package logger // import "github.com/docker/docker/daemon/logger" |
|
| 8 |
+package logger |
|
| 9 | 9 |
|
| 10 | 10 |
import ( |
| 11 | 11 |
"context" |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16: |
| 2 | 2 |
//go:build go1.23 |
| 3 | 3 |
|
| 4 |
-package loggerutils // import "github.com/docker/docker/daemon/logger/loggerutils" |
|
| 4 |
+package loggerutils |
|
| 5 | 5 |
|
| 6 | 6 |
import ( |
| 7 | 7 |
"compress/gzip" |