Debian Codegraph @

debian/patches/0003-sink-move-to-pkg.patch

raw symbols SCIP
1 From: Anoop M S <[email protected]>
2 Subject: [PATCH] Moved sink to pkg/
3 Origin: upstream, https://github.com/humanlogio/humanlog/commit/eceedbf5df8383202e34d3aa4cb3d8dc182b3600
4 Bug: https://github.com/humanlogio/humanlog/issues/67
5 Forwarded: https://github.com/humanlogio/humanlog/pull/70
6
7 ---
8 cmd/humanlog/main.go | 2 +-
9 e2e_test.go | 2 +-
10 {sink => pkg/sink}/bufsink/sized.go | 2 +-
11 {sink => pkg/sink}/sink.go | 0
12 {sink => pkg/sink}/stdiosink/colors.go | 0
13 {sink => pkg/sink}/stdiosink/stdio.go | 2 +-
14 scanner.go | 2 +-
15 scanner_test.go | 2 +-
16 8 files changed, 6 insertions(+), 6 deletions(-)
17 rename {sink => pkg/sink}/bufsink/sized.go (94%)
18 rename {sink => pkg/sink}/sink.go (100%)
19 rename {sink => pkg/sink}/stdiosink/colors.go (100%)
20 rename {sink => pkg/sink}/stdiosink/stdio.go (99%)
21
22 diff --git a/cmd/humanlog/main.go b/cmd/humanlog/main.go
23 index 8ef07955..fec97ff0 100644
24 --- a/cmd/humanlog/main.go
25 +++ b/cmd/humanlog/main.go
26 @@ -16,7 +16,7 @@ import (
27 "github.com/humanlogio/humanlog"
28 "github.com/humanlogio/humanlog/internal/pkg/config"
29 "github.com/humanlogio/humanlog/internal/pkg/state"
30 - "github.com/humanlogio/humanlog/sink/stdiosink"
31 + "github.com/humanlogio/humanlog/pkg/sink/stdiosink"
32 "github.com/mattn/go-colorable"
33 "github.com/urfave/cli"
34 )
35 diff --git a/e2e_test.go b/e2e_test.go
36 index 5a5a2cf0..072ac207 100644
37 --- a/e2e_test.go
38 +++ b/e2e_test.go
39 @@ -10,7 +10,7 @@ import (
40 "testing"
41
42 "github.com/humanlogio/humanlog/internal/pkg/config"
43 - "github.com/humanlogio/humanlog/sink/stdiosink"
44 + "github.com/humanlogio/humanlog/pkg/sink/stdiosink"
45 )
46
47 func TestHarness(t *testing.T) {
48 diff --git a/sink/bufsink/sized.go b/pkg/sink/bufsink/sized.go
49 similarity index 94%
50 rename from sink/bufsink/sized.go
51 rename to pkg/sink/bufsink/sized.go
52 index 57463c62..8ac1ddad 100644
53 --- a/sink/bufsink/sized.go
54 +++ b/pkg/sink/bufsink/sized.go
55 @@ -4,7 +4,7 @@ import (
56 "context"
57
58 "github.com/humanlogio/humanlog/internal/pkg/model"
59 - "github.com/humanlogio/humanlog/sink"
60 + "github.com/humanlogio/humanlog/pkg/sink"
61 )
62
63 type SizedBuffer struct {
64 diff --git a/sink/sink.go b/pkg/sink/sink.go
65 similarity index 100%
66 rename from sink/sink.go
67 rename to pkg/sink/sink.go
68 diff --git a/sink/stdiosink/colors.go b/pkg/sink/stdiosink/colors.go
69 similarity index 100%
70 rename from sink/stdiosink/colors.go
71 rename to pkg/sink/stdiosink/colors.go
72 diff --git a/sink/stdiosink/stdio.go b/pkg/sink/stdiosink/stdio.go
73 similarity index 99%
74 rename from sink/stdiosink/stdio.go
75 rename to pkg/sink/stdiosink/stdio.go
76 index 6931f094..4a4a63a4 100644
77 --- a/sink/stdiosink/stdio.go
78 +++ b/pkg/sink/stdiosink/stdio.go
79 @@ -13,7 +13,7 @@ import (
80 "github.com/fatih/color"
81 "github.com/humanlogio/humanlog/internal/pkg/config"
82 "github.com/humanlogio/humanlog/internal/pkg/model"
83 - "github.com/humanlogio/humanlog/sink"
84 + "github.com/humanlogio/humanlog/pkg/sink"
85 )
86
87 var (
88 diff --git a/scanner.go b/scanner.go
89 index 6431a4d3..09402cfd 100644
90 --- a/scanner.go
91 +++ b/scanner.go
92 @@ -8,7 +8,7 @@ import (
93 "time"
94
95 "github.com/humanlogio/humanlog/internal/pkg/model"
96 - "github.com/humanlogio/humanlog/sink"
97 + "github.com/humanlogio/humanlog/pkg/sink"
98 )
99
100 // Scan reads JSON-structured lines from src and prettify them onto dst. If
101 diff --git a/scanner_test.go b/scanner_test.go
102 index 06780317..075f77db 100644
103 --- a/scanner_test.go
104 +++ b/scanner_test.go
105 @@ -6,7 +6,7 @@ import (
106 "testing"
107
108 "github.com/humanlogio/humanlog/internal/pkg/model"
109 - "github.com/humanlogio/humanlog/sink/bufsink"
110 + "github.com/humanlogio/humanlog/pkg/sink/bufsink"
111 "github.com/stretchr/testify/require"
112 )
113