Skip to content
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

Add a CLI option to check for discrepancies between mxdev.ini branches and what is actually running. #44

Open
ewohnlich opened this issue Mar 18, 2024 · 4 comments

Comments

@ewohnlich
Copy link

The best practice is probably to only change branches through changing the mxdev.ini settings, but in the real world they may differ because mxdev can't stop you from just running git commands. I have my own CLI that does something like this to check for discrepancies using pygit2:

(venv) PS C:\Users\wohnlice\PycharmProjects\Plone6> imsplone branches -c .\mxdev.ini
ims.contacts: `fake` differs from setting: `master`
ims.opensearch: `development` differs from setting: `master`
ims.portals.prevent: `plone6` differs from setting: `master`
WARNING: `ims.upload` is not found in this config file!
ims.users: `i70385` differs from setting: `master`
WARNING: `plone.documentation` is not found in this config file!
WARNING: `plone.squish` is not found in this config file!

If you think this would be useful I can put in a PR to run this if some flag is passed.

@rnixx
Copy link
Member

rnixx commented Mar 19, 2024

Hi, to me this sounds good. maybe adding a command like mxdev status which might contain other useful information as well can be helpful. @jensens what do you think?

@jensens
Copy link
Member

jensens commented Mar 19, 2024

@rnixx sounds useful.

@ewohnlich
Copy link
Author

Is it possible to have more than one target path (e.g. "sources" dir) defined and are you allowed to have untracked packages in there? If so I guess it wouldn't be possible to find packages that aren't in your mx.ini but perhaps should be.

@jensens
Copy link
Member

jensens commented Mar 20, 2024

it should be restricted to vcs folders handled by mx.ini. Otherwise we exceed the scope of mxdev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants