-
Notifications
You must be signed in to change notification settings - Fork 13
Support for version number of a library #95
Comments
I did this deliberately. Let me explain. The use of version numbers in the names of Modelica packages (e.g., Perhaps @mwetter has some use case that I haven't considered. So I'd be interested in hearing about it. But my general feeling is that libraries should be stored on GitHub (etc) and that |
@xogeny : Having multiple libraries installed makes sense if one works on two projects, one uses Buildings 1.6 and the other uses Buildings 2.0.0. Having to pull down the whole library from github each time one switches seems in my view not necessary (and assumes that one has a decent speed internet connection). For example, Buildings 2.0.0 is 110 MB large, of which maybe 40 MB could be removed if we delete certain source files and reference results that are not needed. In my case, I have all versions of Buildings installed on "/usr/local/Modelica/Library/Buildings x.y" so that I can run issues reported by users and test them with the respective release. |
Michael, You say "if one works on two projects". But in that case, why not simply create two different directories to work in and have different sets of libraries in both? Is there some issue with that? Also, I want to clarify a few other details. First, you wouldn't be checking things out all the time. You'd basically just install the libraries once in each directory. Then you'd be done. That being said, the features I am proposing in #97 would keep track of what versions you were currently using and if you wanted to change that, you could simply edit that file or re-install newer versions from the command line and the project file would get updated. Also part of #97 would be the ability to identify that you wanted to work on development of one or more libraries. In this case, That is what I had in mind. Feel free to comment on ways that might be unsuitable for your use cases. |
@xogeny Your solution works, but in my view, it would be more elegant to allow installing libraries with their version numbers in a directory such as What I don't like about having to install the library in my project folder (I assume this is what you propose) is that I put most of my projects on a version control system. In this situation, I would also put all the required libraries on that version control system (or having to update |
@mwetter I guess one thing to be clear about is that at the design meeting in Lyon there seemed to be a general consensus among users (including Martin Otter) that As to your second point about version control, I don't think you ever have to worry that I'll build something that makes version control difficult. I think version control is essential. So much so, that we have a whole milestone for You correctly point out that if you are working in a directory that is version controlled, you should not version control the libraries that you are checking out. This exact point is the basis for #87. But even beyond that, if you plan on changing the libraries, you want the ability to You are correct that you wouldn't install So we have considered these points quite a bit. I admit that this approach is perhaps a bit "opinionated" and doesn't give people all the flexibility they might expect. But we really are trying to follow best practices learned from several different package management solutions. |
I noticed that as of 0.8.0 impact installs all libraries in a folder without version number. The thing is that I know that users would like to have several versions of one library installed, side by side (at least the Buildings library developer asked explicitly for this (right @mwetter ?). So this is a feature that we should support.
The text was updated successfully, but these errors were encountered: