-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: setup tooling #2
Conversation
Formatting, linting, conventional commits lint pre-push hook. GH workflows. Docs deployment
Use different actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I run make setup
I get the following error:
./.setup.sh: 2: set: Illegal option -o pipefail
make: *** [Makefile:41: setup] Error 2
remove `-o pipefail` option
@cedoor I didn't get this error locally because my
ec9ce9f should have fixed this |
I see! It works now but I needed to install |
Ah damn. I had picked
Yes, I can also had a check and error message for this in the setup script. |
I'm using Linux with Ubuntu Jammy! |
@sripwoud |
This fails, but the commit is created anyway. Also, would it be possible to have a hook to create an alias for |
This is the expected behavior. As the hook is a
do you mean you want that running |
Yes, it would be in line with the other repos! It should be a
Exactly, this also is like the other repos work: https://github.com/privacy-scaling-explorations/zk-kit/blob/main/.husky/prepare-commit-msg |
unfortunately the |
@cedoor could you try again the git hooks setup? Now the linting should happen on the current commit msg, effectively preventing creating a wrong commit.
should also start the interactive CLI |
Hey @sripwoud! Got this error:
|
Closes #1
.setup.sh
script that will install tools that are used for local development, namelycargo-nextest
anddprint
andconvco
(cocogitto does not have an interactive CLI afaict). This script and deps were picked with the following requirements in mind:$PATH
):I use the
cargo install --root
option to download a binaries into$PWD/.cargo/bin
, this folder is added to the PATH by theMakefile
, so all tasks must be run withmake [task]
Test plan
I am looking for feedback on the dx.
Clone the repo and run
make setup
: it should download some crates successfully and display the help at the end.Run
make setup
again: it should skip the download step and only show the helpTest all the tasks:
make help
make
make build
make build.docs
make check
make docs
make fix
make fmt
make lint
make test
Test the conventional commit cli:
or
Should interactively let you writing a conventional commit message
Test the commit-msg hook
Should fail, telling you the commit message is not conventional