Skip to content
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

Use relative paths and remove timestamp in queries.sql #2382

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tschuchortdev
Copy link
Contributor

In this small PR I want to fix a few of the issues we've had with the queries.sql file. Specifically, I've removed the timestamp from the log, relativized all paths to the project root and added a new config option for the log file location to use the project root directory, which should fix #2323. The absolute paths and timestamps have been a problem for us because because we intended to track the queries.sql file in Git so that we can see changes in the generated queries inside a PR but some of our developers complained that the file was constantly changing to due usernames and timestamps in the file. That said, I'm not sure if that use case is even relevant anymore seeing that you moved the queries.sql file to /target by default and subsequent compilations seem to append duplicate log lines to the file instead of overwriting them as before (which makes tracking it in Git pointless).

@getquill/maintainers

@CLAassistant
Copy link

CLAassistant commented Jan 17, 2022

CLA assistant check
All committers have signed the CLA.

@guizmaii
Copy link
Member

@tschuchortdev Can you rebase your PR, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants