-
-
Notifications
You must be signed in to change notification settings - Fork 21
Try git submobile instead of cloning #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
Conversation
Ref https://git-scm.com/book/en/v2/Git-Tools-Submodules This fixes micromark to specific commit. I used `git checkout 2.10.1` inside submodule and committed result. At least nothing will break with new changes in micromark.
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.
A general question @wooorm why was cloning opted for in the first place?
Could micromark be made an npm dependency?
@TrySound can you explain more on the issue you ran into and why this would resolve it?
My experience with submodules is that it tends to be problematic, I'd like to avoid using it if at all possible.
It's temporary solution for reusing script/babel-transform-constants.mjs plugin in this project. I'm using submodules for the first time and they do not look so scary. At least they allows to easily stick with specific tag. |
I'm changing this logic here micromark/micromark#35 and we need to no break this project. |
@ChristianMurphy because the micromark scripts aren’t published. |
@TrySound What is the reason for doing this?
These two projects are pretty tightly coupled and maintained together. And it’s a build step that is tested. So not too worried about it |
Maybe they should be in the same monorepo then? |
Getting them setup is the easy part, maintaining them:
What if the scripts were published? |
Yeah! Especially For now, they‘re rather specific to this codebase, so I didn’t want to waste an npm package on them — having them in the code was just the easiest. |
I can take care about babel plugins and make them more solid. |
What are your thoughts on making them better? And are you offering to maintain them yourself? That feels to me like we’re asking too much: I’m assuming they’ll have to be maintained for years; I’m happy to do that |
I'm fine to maintain them too. Will share an access with you. If you wish can transfer to one of your orgs. |
Alright, I’m fine and appreciate you maintaining them, feel free to externalize them! I’d like it if I have somewhat of a say on their heading, because they‘re useful for mm, though. I was thinking of adding them under my personal account instead of a unified org, so having them under your account is just as good! |
How’s that going Bogdan? I’m fine doing it myself! |
Have a bit lack of time. Ok, you can do this. I will add improvements later then. |
Alright, done! thanks for offering to help @TrySound! |
Ref https://git-scm.com/book/en/v2/Git-Tools-Submodules
This fixes micromark to specific commit. I used
git checkout 2.10.1
inside submodule and committed result.
At least nothing will break with new changes in micromark.