versioning

npm - how to show the latest version of a package

只愿长相守 提交于 2019-11-27 05:00:41
问题 How do I use npm to show the latest version of a module? I am expecting something like npm --latest express to print out v3.0.0 . 回答1: You can use: npm show {pkg} version (so npm show express version will return now 3.0.0rc3 ). 回答2: If you're looking for the current and the latest versions of all your installed packages, you can also use: npm outdated 回答3: As of October 2014 : For latest remote version: npm view <module_name> version Note, version is singular. If you'd like to see all

How do you use multiple versions of the same R package?

我是研究僧i 提交于 2019-11-27 03:29:41
In order to be able to compare two versions of a package, I need to able to choose which version of the package that I load. R's package system is set to by default to overwrite existing packages, so that you always have the latest version. How do I override this behaviour? My thoughts so far are: I could get the package sources, edit the descriptions to give different names and build, in effect, two different packages. I'd rather be able to work directly with the binaries though, as it is much less hassle. I don't necessarily need to have both versions of the packages loaded at the same time

Maven versioning best practices [closed]

做~自己de王妃 提交于 2019-11-27 02:40:14
What is the best way to change version of Maven project, to release this version and then return back to *-SNAPSHOT development. Currently I'm doing following: retrieve current version (most likely with SNAPSHOT ) from pom.xml increment version ( mvn -DnewVersion=<something> versions:set ), respecting rules described in the question Maven artifact version for patches mvn:install to sent to repo renaming version once again adding SNAPSHOT postfix. committing changes (using some version control system) I have a strong feeling I'm doing something wrong and/or inefficient. You should use the maven

Why do I get “fatal: git status --porcelain failed”?

心已入冬 提交于 2019-11-27 02:31:27
问题 This is a huge pain in the bum. I've got this a few times before and I don't understand why. 5 mins ago the repo was fine and working, I move some files around (which is all cool and all) and git poops its pants. Any idea why this happens? How can I fix it apart from cloning the repo, moving the files, etc... 回答1: Oh dear I'm such a fail. It looks like the problem stems from Flash Builder copying over other .git repos into sub folders. The answer is to remove all .git folders that aren't the

What is best practice for keeping secrets out of a git repository?

泄露秘密 提交于 2019-11-27 02:24:17
问题 Problem Consider this file tree as my development repository. - foo/ - .git/ - [...] - bar/ - backupclient.py - supersecretstoragecredentials.ini For development, supersecretstoragecredentials.ini needs to be filled in with valid credentials - while I still have to keep a clean version of it in the repository so that other users can easily set their credentials. Possible solutions .gitignore supersecretstoragecredentials.ini and create a supersecretstoragecredentials.ini-example , instruct

Build and Version Numbering for Java Projects (ant, cvs, hudson)

吃可爱长大的小学妹 提交于 2019-11-27 02:21:00
What are current best-practices for systematic build numbering and version number management in Java projects? Specifically: How to manage build numbers systematically in a distributed development environment How to maintain version numbers in source / available to the runtime application How to properly integrate with source repository How to more automatically manage version numbers vs. repository tags How to integrate with continuous build infrastructure There are quite a number of tools available, and ant (the build system we're using) has a task that will maintain a build number, but it's

pushing to a git repository does not work

て烟熏妆下的殇ゞ 提交于 2019-11-27 02:04:18
问题 I am just starting out with GIT (i'm coming from cvs) and would like to set up something akin to cvs/svn with Git. I performed the following steps: cd o:/repository git init cd <working directory> git clone o:/repository i now created a file called file.txt with some content doing a "git status" lists appropriate changes. I then do git add file.txt git commit file.txt and both seem to work fine. When i do git push , i get the following error: No refs in common and none specified; doing

Set AssemblyInfo Version numbers with MSI setup version

夙愿已清 提交于 2019-11-27 02:00:40
问题 I am using a setup project to publish my projects. I want the version of each project to be the same as the setup version. I want to change my setup version property in Visual Studio and after building, for all project versions to be updated from this property, is this possible? 回答1: Projects have Assembly & File version numbers: (not setup versions I edited your question accordingly) Answer 1: If you want to make the Setup projects version number set the Assembly & File version numbers you

Referencing different versions of the same assembly

只谈情不闲聊 提交于 2019-11-27 01:28:39
问题 If A references assembly B 1.1 and C, and C references B 1.2, how do you avoid assembly conflicts? I nievely assumed C's references would be encapsulated away and would not cause any problems, but it appears all the dll's are copied to the bin, which is where the problem occurs. I understand the two ways around this are to use the GAC or assembly bindings? The GAC doesn't seem like the best approach to me, as I don't like assuming dlls will be there, I prefer to reference dlls from a lib

How to get exe application name and version in C# Compact Framework

半世苍凉 提交于 2019-11-27 01:15:04
问题 My application has an exe and uses some DLLs. I am writing all in C#. In one DLL I want to write a method to get the application name and version from the version information in the exe. I understand that in full .NET I could use GetEntryAssembly, but that that is unavailable in CF. 回答1: Getting the app name: System.Reflection.Assembly.GetExecutingAssembly().GetName().Name; Getting the version: System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; You might want to use