Skip to content

Commit f83a33f

Browse files
dmathieupellared
andauthored
clean the gen folder before running tidy (#211)
Co-authored-by: Robert Pająk <[email protected]>
1 parent e4eca26 commit f83a33f

File tree

3 files changed

+7
-16
lines changed

3 files changed

+7
-16
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,16 @@ toolchain-check:
154154
exit 1; \
155155
fi
156156

157+
.PHONY: clean-gen
158+
clean-gen:
159+
rm -rf $(GEN_TEMP_DIR)
160+
157161
.PHONY: clean
158-
clean:
159-
rm -rf $(GEN_TEMP_DIR) $(OTLP_OUTPUT_DIR)/*/ $(OTLPSLIM_OUTPUT_DIR)/*/
162+
clean: clean-gen
163+
rm -rf $(OTLP_OUTPUT_DIR)/*/ $(OTLPSLIM_OUTPUT_DIR)/*/
160164

161165
.PHONY: go-mod-tidy
162-
go-mod-tidy: $(ALL_GO_MOD_DIRS:%=go-mod-tidy/%)
166+
go-mod-tidy: clean-gen $(ALL_GO_MOD_DIRS:%=go-mod-tidy/%)
163167
go-mod-tidy/%: DIR=$*
164168
go-mod-tidy/%:
165169
@echo "$(GO) mod tidy in $(DIR)" \

go.mod

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
module go.opentelemetry.io/proto
22

33
go 1.22.0
4-
5-
require (
6-
go.opentelemetry.io/proto/otlp v1.3.1
7-
google.golang.org/protobuf v1.35.2
8-
)

go.sum

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +0,0 @@
1-
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
2-
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
3-
go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0=
4-
go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8=
5-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
6-
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
7-
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
8-
google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=

0 commit comments

Comments
 (0)