-
Notifications
You must be signed in to change notification settings - Fork 0
BWDO-522 always no repo verify #2
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
Conversation
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.
Pull Request Overview
This PR simplifies the no_repo_verify parameter logic in the _init_repo method by removing conditional logic and always setting it to True.
Key Changes:
- Removed the conditional assignment of
no_repo_verifybased onrepo_urlorrepo_revconfiguration - Changed the
no_repo_verifyparameter to always beTruewhen callingRepoLibrary.init()
Comments suppressed due to low confidence (1)
src/sc/clone/cloners/repo_cloner.py:30
- The documentation for
no_repo_verifyinRepoClonerConfigindicates it should be set to true when using a customrepo_url, but this parameter is not actually exposed as a configurable field in the Pydantic model (line 42 showsverify: boolbut nono_repo_verifyfield). With the code now always passingno_repo_verify = True, this documentation is misleading and should either be updated to reflect the actual behavior or the field should be added to the config if it needs to be user-configurable.
no_repo_verify (bool): Stops repo checking the validity of the version of repo
used. Should be set to true if using a custom repo_url.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f7e9b65 to
d6379f7
Compare
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d6379f7 to
760c3cd
Compare
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.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| cloner_config.manifest = cli_overrides.get("manifest") | ||
|
|
||
| if cli_overrides.get("verify"): | ||
| logger.info("Option [--verify]: Run repo hooks without verification") |
Copilot
AI
Nov 5, 2025
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.
The log message is misleading. Based on the code context and CLI help text, the --verify option runs post-sync hooks WITHOUT prompts (i.e., automatically), not 'without verification'. The message should say 'Run repo hooks without prompts' to match the CLI help text in clone_cli.py.
| logger.info("Option [--verify]: Run repo hooks without verification") | |
| logger.info("Option [--verify]: Run repo hooks without prompts") |
…dkcentral/sc into feature/BWDO-522_always_no_repo_verify
760c3cd to
7cd115e
Compare
TB-1993
left a comment
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.
Looks good, ship it!
Currently we have sc clone add --no-repo-verify if you provide repo_url or repo_rev. However with our current setup even without either of these we need --no-repo-verify as our repo entrypoint applies them anyway. Therefore we need to always apply no-repo-verify