Constellation-Labs / euclid-development-environment

Quickly spin up basic dev environments to build local metagraph projects with our extendable base.
Apache License 2.0
4 stars 13 forks source link

.env file updates during hydra install #14

Closed Proph151Music closed 1 year ago

Proph151Music commented 1 year ago

This code will allow the user to input custom data that will update the .env file if it detects the default information is being used. It will also check if the GITHUB_TOKEN is accessible. If it is not it will request the user to send the correct github token.

This code is useful to simplify setting up the sdk using custom p12 files.

This does not change the ability for developers to manually edit the .env file themselves. This only asks for details from the user if the data is set as the default variables. Or if the github token is invalid.

In another pull request I have sent it will also use the custom p12 data in the .env to compile the custom p12 files during the build process.

IPadawans commented 1 year ago

Hey @Proph151Music, first of all, thanks for your point of view. However, we plan hydra (at least now at the beginning), to not have a prompt override of the .env values. This is intended to user really change the .env file before running the script. Maybe in the future, we can have some changes that allow using bash interaction, but for now, we wish to keep the user updating manually on the .env file before running the script.