Skip to content

Commit 4764f56

Browse files
committed
fix: deps issue
1 parent 14394fa commit 4764f56

File tree

8 files changed

+78
-2
lines changed

8 files changed

+78
-2
lines changed

backend/go.mod

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ require github.com/crawlab-team/crawlab/core v0.0.0-20240614095218-7b4ee8399ab0
1616

1717
require (
1818
dario.cat/mergo v1.0.0 // indirect
19-
github.com/crawlab-team/crawlab/trace v0.1.0 // indirect
2019
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
2120
github.com/golang-jwt/jwt/v5 v5.2.1 // indirect
2221
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect

trace

-1
This file was deleted.

trace/.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, built with `go test -c`
9+
*.test
10+
11+
# Output of the go coverage tool, specifically when used with LiteIDE
12+
*.out
13+
14+
# Dependency directories (remove the comment below to include it)
15+
# vendor/
16+
17+
.idea
18+
.DS_Store

trace/LICENSE

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2021, Crawlab Team
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

trace/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# go-trace
2+
Trace stack tools

trace/go.mod

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/crawlab-team/crawlab/trace
2+
3+
go 1.22
4+
5+
require github.com/ztrue/tracerr v0.4.0

trace/go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/ztrue/tracerr v0.4.0 h1:vT5PFxwIGs7rCg9ZgJ/y0NmOpJkPCPFK8x0vVIYzd04=
2+
github.com/ztrue/tracerr v0.4.0/go.mod h1:PaFfYlas0DfmXNpo7Eay4MFhZUONqvXM+T2HyGPpngk=

trace/trace.go

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package trace
2+
3+
import "github.com/ztrue/tracerr"
4+
5+
func PrintError(err error) {
6+
err = tracerr.Wrap(err)
7+
if err != nil {
8+
tracerr.Print(err)
9+
}
10+
}
11+
12+
func TraceError(err error) error {
13+
err = tracerr.Wrap(err)
14+
if err != nil {
15+
tracerr.Print(err)
16+
}
17+
return err
18+
}
19+
20+
func Error(err error) error {
21+
return tracerr.Wrap(err)
22+
}

0 commit comments

Comments
 (0)