Hey all, I am currently moving my TypeScript proj...
# general
d
Hey all, I am currently moving my TypeScript project to Python. In TypeScript, we were using multiple private packages hosted on Google Artifact Registry, and we have a monolithic structure with each package in a separate repository. We have Google Cloud Build set up for each repo to publish packages whenever a push is sent to GitHub; the job will run. Now, how can I handle this in a Pants Python monorepo to start builds for my apps and only build if something changes in a particular app package?
a
Check out the
--changed-since
flag here: https://www.pantsbuild.org/2.21/docs/using-pants/advanced-target-selection#running-over-changed-files-with---changed-since You can pass the previous commit (or any other string git would understand) in this way and it will glob only targets that have been modified since that commit exclusively.
d
@acoustic-librarian-29560 hi i'm trying to select the target in google cloud build but google cloud build ignore .git folder which raises error saying pants require git to use --changed-since command. Is there any way i can tackle this situation.
a
I'm not at all familiar with google cloud build but a quick google search brings up this issue: https://issuetracker.google.com/issues/136435027?pli=1 Seems like there must be a way to do it, even if you have to check out the repo manually.