use hashes instead of submodules #11
timotheecour
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
I don't disagree that what you suggest would work, but you don't make a compelling case for why anyone would want it. There are a few advantages to the current approach:
In short, it's not an accident that it works this way. 😆 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How about the fact that with git submodules "git checkout " doesn't undo the "changes" to the submodule's hashes according to "git dfif"? But probably that's just me not understanding git submodules... For me git submodules simply never work, whenever I have to use them. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@disruptek
git submodules
git submodule update --init
workslist of hashes
git submodule
allows; it's in fact simpler to maintain a list of hashesdist
currently, you can have a single version controlled file that specifies for each nim version a set of hashes that are known to work together. It's far more flexible and easier to maintain without the downsides ofgit submodule
.In fact this would work much like
important_packages.nim
, or evenbrew
package manager.dist
dist
(eg to publish docs in a unified way, run CI, install packages tied to a given nim version etc) can be maintained in a single branch (the main branch) instead of having to be maintained in each of the branches tracking nim versions as currently done indist
Beta Was this translation helpful? Give feedback.
All reactions