Skip to content

Commit

Permalink
Adjust to newer CLI behavior (#678)
Browse files Browse the repository at this point in the history
When no dependencies are found or need to be updated, the CLI no longer
creates an empty buf.lock file. Update the fetch script to gracefully
handle this.

Fixes #676.
  • Loading branch information
pkwarren authored Aug 26, 2024
1 parent 61a0704 commit 7e8d0b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-print-directory
BIN := .tmp/bin
BUF_VERSION ?= v1.34.0
BUF_VERSION ?= v1.38.0
COPYRIGHT_YEARS := 2021-2023
GOLANGCI_LINT_VERSION ?= v1.58.0
LICENSE_IGNORE := --ignore /testdata/
Expand Down
4 changes: 2 additions & 2 deletions scripts/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ process_ref() {
# file since it's no longer relevant: each BSR cluster will sync itself from the base files and
# regenerate its own `buf.lock`.
pushd "${mod_tmp_path}" > /dev/null
buf mod update
buf dep update
buf build
rm buf.lock
rm -f buf.lock
popd > /dev/null

# process the prepared module: convert it to CAS from the tmp mod directory and put blob files in
Expand Down

0 comments on commit 7e8d0b8

Please sign in to comment.