Skip to content

Commit

Permalink
runtime: Add make handle_vendor
Browse files Browse the repository at this point in the history
This will help us to ensure that we always update the vendored code when
needed.   Right now we've been lacking behind and we tend to realise
something change during the next mandatory update, which is not exactly
optimal.

Related: kata-containers#2159

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
  • Loading branch information
fidencio committed Jul 14, 2021
1 parent 79977a2 commit 930ca55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/runtime/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ $(MONITOR_OUTPUT): $(SOURCES) $(GENERATED_FILES) $(MAKEFILE_LIST) .git-commit
install \
show-header \
show-summary \
show-variables
show-variables \
vendor

$(TARGET).coverage: $(SOURCES) $(GENERATED_FILES) $(MAKEFILE_LIST)
$(QUIET_TEST)go test -o $@ -covermode count
Expand Down Expand Up @@ -647,6 +648,11 @@ install-scripts: $(SCRIPTS)
install-completions:
$(QUIET_INST)install --mode 0644 -D $(BASH_COMPLETIONS) $(DESTDIR)/$(BASH_COMPLETIONSDIR)/$(notdir $(BASH_COMPLETIONS));

handle_vendor:
go mod tidy
go mod vendor
go mod verify

clean:
$(QUIET_CLEAN)rm -f \
$(CONFIGS) \
Expand Down

0 comments on commit 930ca55

Please sign in to comment.