File tree 5 files changed +46
-3
lines changed
5 files changed +46
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : " make-gen-delta"
2
+ on :
3
+ - workflow_dispatch
4
+ - push
5
+ - workflow_call
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ make-gen-delta :
12
+ name : " Check for uncommitted changes from make gen"
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : ' 0'
18
+ - name : Determine Go version
19
+ id : get-go-version
20
+ # We use .go-version as our source of truth for current Go
21
+ # version, because "goenv" can react to it automatically.
22
+ run : |
23
+ echo "Building with Go $(cat .go-version)"
24
+ echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT"
25
+ - name : Set up Go
26
+ uses : actions/setup-go@v4
27
+ with :
28
+ go-version : " ${{ steps.get-go-version.outputs.go-version }}"
29
+ - name : Running go mod tidy
30
+ run : |
31
+ go mod tidy
32
+ - name : Install Dependencies
33
+ run : |
34
+ make tools
35
+ - name : Running make fmt
36
+ run : |
37
+ make fmt
38
+ - name : Check for changes
39
+ run : |
40
+ git diff --exit-code
41
+ git status --porcelain
42
+ test -z "$(git status --porcelain)"
Original file line number Diff line number Diff line change 1
1
package gldap
2
2
3
- // ldap result codes
3
+ // ldap result codes
4
4
const (
5
5
ResultSuccess = 0
6
6
ResultOperationsError = 1
@@ -154,7 +154,7 @@ var ResultCodeMap = map[uint16]string{
154
154
ResultAuthorizationDenied : "Authorization Denied" ,
155
155
}
156
156
157
- // ldap application codes
157
+ // ldap application codes
158
158
const (
159
159
ApplicationBindRequest = 0
160
160
ApplicationBindResponse = 1
Original file line number Diff line number Diff line change @@ -349,7 +349,6 @@ func TestConvertString(t *testing.T) {
349
349
}
350
350
for _ , tc := range tests {
351
351
t .Run (tc .name , func (t * testing.T ) {
352
-
353
352
assert , require := assert .New (t ), require .New (t )
354
353
355
354
got , err := ConvertString (tc .encodedStrings ... )
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ func testSafeBuf(t *testing.T) *safeBuf {
157
157
buf : & strings.Builder {},
158
158
}
159
159
}
160
+
160
161
func (w * safeBuf ) Write (p []byte ) (n int , err error ) {
161
162
w .mu .Lock ()
162
163
defer w .mu .Unlock ()
Original file line number Diff line number Diff line change @@ -261,6 +261,7 @@ func testSafeBuf(t *testing.T) *safeBuf {
261
261
buf : & strings.Builder {},
262
262
}
263
263
}
264
+
264
265
func (w * safeBuf ) Write (p []byte ) (n int , err error ) {
265
266
w .mu .Lock ()
266
267
defer w .mu .Unlock ()
You can’t perform that action at this time.
0 commit comments