-
Notifications
You must be signed in to change notification settings - Fork 31
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
Different directory structure between branches #17
Comments
Yes, I know. It's done this way because it seems to be more practical to have a directly usable Modelica library if cloning the master into a Modelica path directory (no need to copy around "Modelica_DeviceDrivers 1.2" first in order that the library is automatically loaded correctly). The release branch on the other hand is in a form that is compatible with the way Modelica libraries are automatically fetched from Github at (https://www.modelica.org/libraries). This is not perfect, but it is a compromise that works good enough for me, so that I don't want to change it in the moment, until I'm convinced that some other procedure is more practical. By the way, my procedure to cut a release version from the master is described here: |
Actually I do not like the branch management of MDD. In my fork I did a lot of commits on the release branch that are unmergeable in the end.
Please consider this changes. Your DLR colleagues do it the same way, e.g. in PySimulator or FaultTriggering. |
Are you going to consider this and release a new version of MDD soon? Thank you! |
Sorry, I'm currently most of the time in bed with fever.I'll come back to this, if I'm better. |
Get well soon! |
Just got a new release version ready. Couldn't do any additional testing, since I'm now not at DLR anymore and thus don't have access to the DLR infrastructure. |
After leaving DLR is your mail address given in the Readme.md still valid? |
No its not valid anymore. Changed it. Thanks for pointing that out. |
Why do the master and release branch still have different directory structure which makes switching branches almost impossible since I then need to adapt my MODELICAPATH? |
I do not see this fixed but am not able to reopen issue. See e.g. IdealizedContact where there is master and release branch with identical directory structure. |
Can you please reopen as long as it is not fixed. |
I was just looking into this again and would be interested in your opinion in how to do it best. Below, I considered two variants, but maybe there are good variants that I didn't think of. I think you (or somebody else) once proposed me an additional solution, but I don't find it any more. It's important to me that the branch organisation still allows that the library can be conveniently downloaded from https://www.modelica.org/libraries (hence, that the script that automates that process still works, or alternatively, can be adapted to work with the new structure). Variant 1If I interpret your proposal in #17 (comment) correct, the master branch would have a directory Pros:
Cons:
Variant 2Do it similar to projects like IdealizedContact. Hence, the master branch would have a directory Pros:
Cons:
|
I invite git expert @dietmarw to contribute in this discussion. |
I think here is a general misunderstanding on how to use the release branch. It is not a branch to commit to other than making a cut of a new release. So it is not a branch that is supposed to be mergeable. So if you have changes to some released version that you want to merge back...you need to commit those changes in the development branch. Where this is depends on how the developers organise their repo. E.g., have a master and a vX.Y.Z-maintenance branch. The master and maintenance branches would have the same dir structure. But not the release since its sole purpose is to provide a downloadable structure. That's at least how things are organised now. One could of course argue (and I have played wit that thought) to use the release assets for the version dependent directory structure. But up to now this is not the way the modelica.org/libraries page is build. |
And to answer @tbeu's question: release-branches are basically meant read-only. |
Thanks @dietmarw for contributing to the discussion. I changed the directory structure in the spirit of Variant 2. If this works for @tbeu I would close the issue, but I'm also open to try different ideas. Still, it would be nice to find a solution that allows to easily switch and merge between |
Well you can still have that just don't use |
Hm. Yes, that could be done. What do you think @tbeu , should I add such a maintenance branch? By the way, if you think that it would be easier for you to have direct write access to the repository, this would be fine for me, too. Regarding Modelica library development I think it would be even a bit faster to get a bugfix release if |
I think it is OK now. I would not ask for general maintenance branch. But maybe you want to move the Incubate blocks to a new branch. |
@bernhard-thiele Thanky you for offering push rights to MDD. If it makes life easier for you I can accept them Otherwise it is still fine for me if you double-check and select my commits before merging. Thus it is up to you. |
I'll close this one. |
Branch release has different directory structure (with top level directory Modelica_DeviceDrivers 1.2) than branches master or dllwrapper. This is not compatible when switching branches.
I propose to also add this top level directory (available with release branch) to other branches.
The text was updated successfully, but these errors were encountered: