tufin / circleci-monorepo Goto Github PK
View Code? Open in Web Editor NEWAn example monorepo for a golang with CircleCI
License: Apache License 2.0
An example monorepo for a golang with CircleCI
License: Apache License 2.0
First off, this is awesome thank you so much for taking the time to show a simple use case of building projects in different directories.
This worked great for me when projects were at the root level of the repo, but the projects I want to build are under a parent directory "functions", so in my project-dirs file I have something like:
functions/widget
functions/widget2
This appears to break the usability of this method as it now just says:
Modified directories:functions
Calculating dependencies
Building: functions
I know I could move everything up, but I would really like to be able to keep them under a parent folder. Any thoughts? Thanks!
Hi, thanks for the demo-repo - this is really helpful!
I found the link to this repo in the CircleCI forum and I'm running into a similar problem as one user over there:
Has anyone managed to get around the problem of git diff based on $CIRCLE_COMPARE_URL only showing the changes for the latest commit in a PR?
Say I create a feature branch and change something in package A, commit and push that, then later discover I had to change something in package B as well. I make changes in package B, commit and push. Now, even when looping over ever package, $(git diff $COMMIT_RANGE --name-only | grep "$PACKAGE") will only show changes for package B, so the first one won’t be tested.
from: https://discuss.circleci.com/t/does-circleci-2-0-work-with-monorepos/10378/19
So, changing something in service1
and commiting it (but not pushing), then changing something in service2
and commiting it, leads to this output when running
$ git diff --no-commit-id --name-only -r `git log -n 2 --oneline --pretty=format:"%h" | tail -n1`
service2/main.go
The changes in service1
are not found because they happened in the second to last commit.
Is there a way to check a dynamic range of commits rather than just the last one? We'd need the range since the last test we ran on circleci ...
Hi I was wondering how you are running your tests/jobs in circle ci in your monorepo of project A and B. E.g. only run tests for project A if project A is changed.
Thanks in advance!
I forked the repo and pointed CircleCI to it. I have set the CIRCLE_TOKEN with my personal API key.
Fails with
jq: error (at <stdin>:2): Cannot index object with number
Exited with code 5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.