-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if BP_NGINX_VERSION is set and no "workspace/buildpack.yml" is present #539
Comments
Running into this issue as well. Command:
Output:
When I remove Command:
Output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Nginx version can be set via env variable (as recommended in README) without buildpack.yml in project root.
Current Behavior
Error if used with pack and --env BP_NGINX_VERSION=1.22.* without buildpack.yml:
===> DETECTING
======== Output: paketo-buildpacks/[email protected] ========
parsing version failed: open /workspace/buildpack.yml: no such file or directory
err: paketo-buildpacks/[email protected] (1)
Steps to Reproduce
pack build nginx-test-app:test --env BP_NGINX_VERSION=1.22.1
Possible Solution
Don't try to parse buildpack.yml if BP_NGINX_VERSION is set.
Run detect.go:62-92 in else block.
The text was updated successfully, but these errors were encountered: