ancient-vegetable-10556
09/27/2021, 3:36 PM$ GOPATH=/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/tmpi5pul2c_ go get -d
error: [Errno 2] No such file or directory: 'go'
----------------------------------------
ERROR: Failed building wheel for dockerfile
fast-nail-55400
09/27/2021, 3:39 PMancient-vegetable-10556
09/27/2021, 3:39 PMERROR: Command errored out with exit status 1:
command: /Users/chrisjrn/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/pip-install-_jvjn7pm/dockerfile_de31e4d181c743b0b4f4ea38511cb7bf/setup.py'"'"'; __file__='"'"'/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/pip-install-_jvjn7pm/dockerfile_de31e4d181c743b0b4f4ea38511cb7bf/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/pip-record-372_50ar/install-record.txt --single-version-externally-managed --compile --install-headers /Users/chrisjrn/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/include/site/python3.9/dockerfile
cwd: /private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/pip-install-_jvjn7pm/dockerfile_de31e4d181c743b0b4f4ea38511cb7bf/
Complete output (5 lines):
running install
running build
running build_ext
$ GOPATH=/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/tmpmb3p0tf7 go get -d
error: [Errno 2] No such file or directory: 'go'
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/chrisjrn/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/pip-install-_jvjn7pm/dockerfile_de31e4d181c743b0b4f4ea38511cb7bf/setup.py'"'"'; __file__='"'"'/private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/pip-install-_jvjn7pm/dockerfile_de31e4d181c743b0b4f4ea38511cb7bf/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/0m/h2n902qn38b8555xq8z0w_h40000gn/T/pip-record-372_50ar/install-record.txt --single-version-externally-managed --compile --install-headers /Users/chrisjrn/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/include/site/python3.9/dockerfile Check the logs for full command output.
WARNING: You are using pip version 21.1.3; however, version 21.2.4 is available.
You should consider upgrading via the '/Users/chrisjrn/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9 -m pip install --upgrade pip' command.
Failed to install requirements from /Users/chrisjrn/src/pants/3rdparty/python/requirements.txt.
fast-nail-55400
09/27/2021, 3:40 PMdockerfile
PyPi package?fast-nail-55400
09/27/2021, 3:41 PMfast-nail-55400
09/27/2021, 3:41 PMancient-vegetable-10556
09/27/2021, 3:42 PMancient-vegetable-10556
09/27/2021, 3:42 PMancient-vegetable-10556
09/27/2021, 3:42 PMcurved-television-6568
09/27/2021, 3:45 PMancient-vegetable-10556
09/27/2021, 3:45 PMcurved-television-6568
09/27/2021, 3:45 PMancient-vegetable-10556
09/27/2021, 3:45 PMancient-vegetable-10556
09/27/2021, 3:48 PMbrew install golang
has fixed it for me on this machineenough-analyst-54434
09/27/2021, 3:56 PMhundreds-father-404
09/28/2021, 2:36 AMdockerfile
via PythonToolBase
and run the import parsing as a Process
. See https://github.com/pantsbuild/pants/pull/12916 for an example with Terraform. Wdyt?
(It also slows down the install for everyone because Pants has a new dependency. This impacts CI, which often clean installs Pants every time)curved-television-6568
09/28/2021, 5:25 AMcurved-television-6568
09/28/2021, 8:02 AMcurved-television-6568
09/28/2021, 8:15 AMcurved-television-6568
09/28/2021, 5:44 PMhundreds-father-404
09/28/2021, 6:11 PMgenerate_all_lockfiles.sh
, it does not expect the lockfile to actually exist. Pants will do it for you. You could fwit run ./pants generate-lockfiles --resolve=dockerfile-parser
directly in the CLI, altho you'd need to set a couple options like --backend-packages=pants.backend.experimental.docker
and --dockerfile-parser-lockfile=<path>
curved-television-6568
09/28/2021, 6:13 PMcurved-television-6568
09/28/2021, 6:13 PMcurved-television-6568
09/28/2021, 6:23 PM$ ./pants --backend-packages="+['pants.backend.experimental.docker']" generate-lockfiles --resolve=dockerfile-parser --dockerfile-parser-version=dockerfile==3.2.0 --dockerfile-parser-interpreter-constraints="['>=3.6.1']" --dockerfile-parser-lockfile=src/python/pants/backend/docker/dockerfile_lockfile.txt
Perhaps not all of them are required, but some were, or I’d get issues.. like this one:
ValueError: You requested to generate a lockfile for dockerfile-parser because you included it in, but--generate-lockfiles-resolve
is set to[dockerfile-parser].lockfile
so a lockfile will not be generated.<default>
If you would like to generate a lockfile for dockerfile-parser, please setto the path where it should be generated and run again.[dockerfile-parser].lockfile
curved-television-6568
09/28/2021, 6:25 PMhundreds-father-404
09/28/2021, 6:28 PMcurved-television-6568
09/28/2021, 6:33 PM