Skip to content

Conversation

@haritamar
Copy link
Collaborator

@haritamar haritamar commented Nov 18, 2024

null

@github-actions
Copy link
Contributor

👋 @haritamar
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

dbt deps --lock --project-dir elementary/monitor/dbt_project && git diff --quiet elementary/monitor/dbt_project/package-lock.yml || (echo "Changes detected in package lock file!" && exit 1);
else
echo "Skipping hook, dbt version is $dbt_version (< 1.8).";
fi
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used chatgpt to generate this - basically verify that the lock is up to date, but only for dbt 1.8 and above (locks were introduced then)

@haritamar haritamar merged commit d32c132 into master Nov 18, 2024
4 checks passed
@haritamar haritamar deleted the pr-1669-lock-files branch November 18, 2024 16:51
hanalytics-data-service pushed a commit to hanalytics-data-service/hanalytics-elementary that referenced this pull request Apr 14, 2025
* add package-lock

* update package-lock file

* add dbt packages lock check to pre-commit

---------

Co-authored-by: Noel Gomez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants