Hi everyone! All examples on github have `.env` ta...
# pactflow
a
Hi everyone! All examples on github have
.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:
Copy code
# Export all variable to sub-make if .env exists
ifneq (,$(wildcard ./.env))
    include .env
    export
endif
Am I doing it wrong way?
m
I think the
.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).
I think it’s a mistake and not meant to be there
👍 1
a
Thank you for the explanation, @Matt (pactflow.io / pact-js / pact-go)!
👍 1