Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar
Commits
278d7ee5
Commit
278d7ee5
authored
Sep 17, 2021
by
suyanlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code
parent
9124c5ca
Pipeline
#8012
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
+7
-19
Makefile
Makefile
+7
-13
sidecar.go
internal/app/sidecar.go
+0
-6
No files found.
Makefile
View file @
278d7ee5
...
@@ -38,6 +38,13 @@ GREEN=\033[0;32m
...
@@ -38,6 +38,13 @@ GREEN=\033[0;32m
BLUE
=
\0
33[0
;
34m
BLUE
=
\0
33[0
;
34m
NC
=
\0
33[0m
NC
=
\0
33[0m
build
:
packr
@
mkdir
-p
bin
rm
-f
imports/imports.go
$(GO)
build
-ldflags
'${GOLDFLAGS}'
./cmd/
${
APP_NAME
}
@
mv
./sidecar bin
@
printf
"
${
GREEN
}
Build sidecar successfully!
${
NC
}
\n
"
.PHONY
:
test fmt_proto fmt_shell check checkgofmt
.PHONY
:
test fmt_proto fmt_shell check checkgofmt
help
:
Makefile
help
:
Makefile
...
@@ -67,13 +74,6 @@ install: packr
...
@@ -67,13 +74,6 @@ install: packr
$(GO)
install
-ldflags
'${GOLDFLAGS}'
./cmd/
${
APP_NAME
}
$(GO)
install
-ldflags
'${GOLDFLAGS}'
./cmd/
${
APP_NAME
}
@
printf
"
${
GREEN
}
Build sidecar successfully
${
NC
}
\n
"
@
printf
"
${
GREEN
}
Build sidecar successfully
${
NC
}
\n
"
build
:
packr
@
mkdir
-p
bin
rm
-f
imports/imports.go
$(GO)
build
-ldflags
'${GOLDFLAGS}'
./cmd/
${
APP_NAME
}
@
mv
./sidecar bin
@
printf
"
${
GREEN
}
Build sidecar successfully!
${
NC
}
\n
"
installent
:
packr
installent
:
packr
cp
imports/imports.go.template imports/imports.go
cp
imports/imports.go.template imports/imports.go
@
sed
"s?)?
$(MODS)
@)?"
go.mod |
tr
'@'
'\n'
>
goent.mod
@
sed
"s?)?
$(MODS)
@)?"
go.mod |
tr
'@'
'\n'
>
goent.mod
...
@@ -122,10 +122,6 @@ fmt: fmt_proto fmt_shell ## go fmt
...
@@ -122,10 +122,6 @@ fmt: fmt_proto fmt_shell ## go fmt
@
find
.
-name
'*.go'
-not
-path
"./vendor/*"
| xargs goimports
-l
-w
@
find
.
-name
'*.go'
-not
-path
"./vendor/*"
| xargs goimports
-l
-w
@
gofumpt
-l
-w
.
@
gofumpt
-l
-w
.
all
:
pb grpc
pb
:
pb
:
@
cd
model/pb
&&
protoc
-I
=
.
\
@
cd
model/pb
&&
protoc
-I
=
.
\
-I
${
GOPATH
}
/src
\
-I
${
GOPATH
}
/src
\
...
@@ -162,8 +158,6 @@ build-dep:
...
@@ -162,8 +158,6 @@ build-dep:
@
go
install
mvdan.cc/sh/v3/cmd/gosh@latest
@
go
install
mvdan.cc/sh/v3/cmd/gosh@latest
@
go
install
mvdan.cc/unparam@latest
@
go
install
mvdan.cc/unparam@latest
@
go
install
github.com/incu6us/goimports-reviser@master
@
go
install
github.com/incu6us/goimports-reviser@master
# @apt install clang-format or brew isntall clang-format
# @apt install clang-format or brew isntall clang-format
# @apt install shellcheck or brew install shellcheck
# @apt install shellcheck or brew install shellcheck
...
...
internal/app/sidecar.go
View file @
278d7ee5
...
@@ -94,9 +94,3 @@ func (s *App) Stop() error {
...
@@ -94,9 +94,3 @@ func (s *App) Stop() error {
}
}
return
s
.
manger
.
Stop
()
return
s
.
manger
.
Stop
()
}
}
func
Asset
(
err
error
)
{
if
err
!=
nil
{
panic
(
err
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment