Anton Yakutovich
06/29/2022, 11:29 AM.env
target in the pact related actions: https://github.com/pactflow/example-bi-directional-provider-dredd/blob/master/Makefile#L34
For me it doesn't expose variables from the existing .env
file on macos. So I ended up adding the snippet on the top of Makefile:
# Export all variable to sub-make if .env exists
ifneq (,$(wildcard ./.env))
include .env
export
endif
Am I doing it wrong way?Matt (pactflow.io / pact-js / pact-go)
.env
was copied over from the canonical example-consumer
example, but the use of the dotenv
package hasn’t gone with it (for several reasons).Matt (pactflow.io / pact-js / pact-go)
Anton Yakutovich
06/29/2022, 1:05 PM