Hi all
Something must have changed in the past year or so that I’ve been away.
Here’s the minimal way to reproduce the problem.
I’m using ‘make’ as my build command. I’m on the free static site plan.
TEST := $(shell python -c 'print(22, 23, 24)')
$(info $(TEST))
.PHONY : all
all : ; @echo $(TEST)
Produces:
==> Cloning from https://github.com/dejbug/springerbk
==> Checking out commit 8c44a17e49e1bd5ce8f8022ba3d3f7d7ea0c5034 in branch main
==> Downloading cache...
==> Transferred 25MB in 8s. Extraction took 0s.
==> Running build command 'make'...
==> Using Python version 3.10.12 via environment variable PYTHON_VERSION
==> Docs on specifying a Python version: https://render.com/docs/python-version
==> Using Poetry version 1.1.14 (default)
==> Docs on specifying a Poetry version: https://render.com/docs/poetry-version
==> Installing Poetry version 1.1.14
Retrieving Poetry metadata # Welcome to Poetry! This will download and install the latest version of Poetry, a dependency and package manager for Python. It will add the `poetry` command to Poetry's bin directory, located at: /opt/render/project/poetry/bin You can uninstall at any time by executing this script with the --uninstall option, and these changes will be reverted. Installing Poetry (1.1.14) Installing Poetry (1.1.14): Creating environment Installing Poetry (1.1.14): Installing Poetry Installing Poetry (1.1.14): Creating script Installing Poetry (1.1.14): Done Poetry (1.1.14) is installed now. Great! To get started you need Poetry's bin directory (/opt/render/project/poetry/bin) in your `PATH` environment variable. Add `export PATH="/opt/render/project/poetry/bin:$PATH"` to your shell configuration file. Alternatively, you can call Poetry explicitly with `/opt/render/project/poetry/bin/poetry`. You can test that everything is set up by executing: `poetry --version` 22 23 24
Retrieving Poetry metadata
==> Publish directory dist does not exist!
==> Build failed 😞
==> Common ways to troubleshoot your deploy: https://docs.render.com/troubleshooting-deploys
Normally, with a working makefile, its output should be printed before Poetry installs.
(And btw, why does Poetry install after the build command? Isn’t it supposed to be a part of the build environment?)
Somehow the Poetry installation log output is piped into the makefile shell command. I have no idea how.
Thank you! And sorry.