@@ -99,14 +99,14 @@ export AUTO_UPDATE_ENABLED ?= true
99
99
VERSION_ENV = $(PACKAGE_NAME)_VERSION
100
100
RELEASE_ENV = $(PACKAGE_NAME)_RELEASE
101
101
ifneq ($(strip $($(VERSION_ENV))),)
102
- PACKAGE_VERSION=$(strip $($(VERSION_ENV)))
102
+ export PACKAGE_VERSION=$(strip $($(VERSION_ENV)))
103
103
# $() is hack to include leading space in variable assignment
104
104
PACKAGE_VERSION_OVERRIDE = $() (overridden by $(VERSION_ENV) environment variable)
105
105
ifneq ($(strip $($(RELEASE_ENV))),)
106
- PACKAGE_RELEASE=$(strip $($(RELEASE_ENV)))
106
+ export PACKAGE_RELEASE=$(strip $($(RELEASE_ENV)))
107
107
PACKAGE_RELEASE_OVERRIDE = $() (overridden by $(RELEASE_ENV) environment variable)
108
108
else # If the package version is overridden, but the release is not, then set the release to 0
109
- PACKAGE_RELEASE=0
109
+ export PACKAGE_RELEASE=0
110
110
PACKAGE_RELEASE_OVERRIDE = $() (because version overridden by $(VERSION_ENV) environment variable)
111
111
endif
112
112
endif
@@ -212,7 +212,9 @@ _version_by_semver: $(LOCAL_BIN)/vert
212
212
echo "ERROR: failed to obtain version matching '$${version_pin}' for $(VENDOR)/$(PACKAGE_REPO_NAME) (got: $${releases[@]:0:10}...)" >&2; \
213
213
exit 1; \
214
214
elif [ "$${local_version}" != "$${current_version}" ]; then \
215
- if ! env PATH='$(PATH)' vert ">$${local_version}$(DEFAULT_PIN_SUFFIX)" "$${current_version}" >/dev/null; then \
215
+ if [ -f VERSIONS-SKIP ] && grep -qFx "$${current_version}" VERSIONS-SKIP; then \
216
+ echo "NOT UPGRADING $(PACKAGE_NAME) from $${local_version} to $${current_version} because $${current_version} is disallowed by VERSIONS-SKIP" >&2; \
217
+ elif ! env PATH='$(PATH)' vert ">$${local_version}$(DEFAULT_PIN_SUFFIX)" "$${current_version}" >/dev/null; then \
216
218
echo "NOT \"Upgrading\" $(PACKAGE_NAME) from $${local_version} to OLDER $${current_version}" >&2; \
217
219
exit 1; \
218
220
else \
@@ -238,8 +240,12 @@ GITHUB_LATEST_RELEASE:
238
240
echo "ERROR: failed to obtain version matching '$${version_pin}' for $(VENDOR)/$(PACKAGE_REPO_NAME) (got: $${releases[@]:0:10}...)" >&2; \
239
241
exit 1; \
240
242
elif [ "$${local_version}" != "$${current_version}" ]; then \
241
- echo "Upgrading $(PACKAGE_NAME) from $${local_version} to $${current_version}"; \
242
- echo "$${current_version}" > VERSION; \
243
+ if [ -f VERSIONS-SKIP ] && grep -qFx "$${current_version}" VERSIONS-SKIP; then \
244
+ echo "NOT UPGRADING $(PACKAGE_NAME) from $${local_version} to $${current_version} because $${current_version} is disallowed by VERSIONS-SKIP" >&2; \
245
+ else \
246
+ echo "Upgrading $(PACKAGE_NAME) from $${local_version} to $${current_version}"; \
247
+ echo "$${current_version}" > VERSION; \
248
+ fi; \
243
249
fi; \
244
250
else \
245
251
echo "NOT \"Upgrading\" $(PACKAGE_NAME) from $${local_version} to $${current_version} because auto-update is disabled" >&2; \
0 commit comments