Repository navigation
chore: add setup and precommit scripts - #35
Closed
mentatbot[bot] wants to merge 3 commits into
Closed
mentatbot[bot] wants to merge 3 commits into
mentatbot[bot] wants to merge 3 commits into
Conversation
Added two scripts to enhance development workflow: 1. `.mentat/setup.sh` - Sets up the development environment by installing Rust and necessary components 2. `.mentat/precommit.sh` - Runs code formatting and linting before commits Also updated .gitignore to exclude Mentat logs directory. Mentat precommits failed. Log: https://mentat.ai/log/3b577a57-e3ed-4d89-ac99-be4742042fcb
Added detection and installation of system dependencies (pkg-config and OpenSSL dev libraries) to fix the build error related to the openssl-sys crate. The script now detects the appropriate package manager (apt, yum, apk, or dnf) and installs the required dependencies. Mentat precommits failed. Log: https://mentat.ai/log/802cf386-db9a-4076-895e-3dbb534d53d4
Added code to source the cargo environment in the precommit script to ensure that cargo commands are available when the script runs. This addresses the issue where the precommit script couldn't find the cargo command even though it was installed in the setup script. Mentat precommits passed. Log: https://mentat.ai/log/3d066716-96df-4986-9dc4-2b490243c0f0
Contributor
Author
Scripts Implementation CompleteI've successfully implemented the requested setup and precommit scripts that will help with automatic development in this repository:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added two scripts to enhance development workflow:
.mentat/setup.sh- Sets up the development environment by installing Rust and necessary components.mentat/precommit.sh- Runs code formatting and linting before commitsAlso updated .gitignore to exclude Mentat logs directory.
🤖 See my steps and cost here ✨