Browse Source

fix dockerfile: ignore "sanitized-package" added by dependabot

https://github.com/fphammerle/switchbot-mqtt/commit/7103e7ea6cf2bdc5d4216e704213e341675d2c02
Fabian Peter Hammerle 2 years ago
parent
commit
a093b0e924
2 changed files with 3 additions and 1 deletions
  1. 2 0
      CHANGELOG.md
  2. 1 1
      Dockerfile

+ 2 - 0
CHANGELOG.md

@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - dockerfile: `chmod` files copied from host to no longer require `o=rX` perms on host
 - dockerfile: add registry to base image specifier for `podman build`
 - dockerfile: add `--force` flag to `rm` invocation to avoid interactive questions while running `podman build`
+- dockerfile: ignore "sanitized-package" added to `Pipfile.lock` by dependabot
+  (fixes `pipenv.vendor.requirementslib.exceptions.RequirementError: Failed parsing requirement from '.'`)
 
 ### Removed
 - compatibility with `python3.5` & `python3.6`

+ 1 - 1
Dockerfile

@@ -35,7 +35,7 @@ ENV PIPENV_CACHE_DIR=/tmp/pipenv-cache \
     PIPENV_VENV_IN_PROJECT=yes-please \
     PATH=/home/build/.local/bin:$PATH
 # `sponge` is not pre-installed
-RUN jq 'del(.default."systemctl-mqtt")' Pipfile.lock > Pipfile.lock~ \
+RUN jq 'del(.default."systemctl-mqtt", .default."sanitized-package")' Pipfile.lock > Pipfile.lock~ \
     && mv Pipfile.lock~ Pipfile.lock \
     && pipenv install --deploy --verbose
 COPY --chown=build:nobody . $SOURCE_DIR_PATH