Questions tagged [versioning]
Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software.
versioning
3,145
questions
1296
votes
5
answers
429k
views
How to mark a method as obsolete or deprecated?
How do I mark a method as obsolete or deprecated using C#?
1060
votes
6
answers
377k
views
Definition of "downstream" and "upstream"
I've started playing with Git and have come across the terms "upstream" and "downstream". I've seen these before but never understood them fully. What do these terms mean in the context of SCMs (...
918
votes
33
answers
556k
views
Is there a way to get the version from the 'package.json' file in Node.js code?
Is there a way to get the version set in the package.json file in a Node.js application? I would want something like this
var port = process.env.PORT || 3000
app.listen port
console.log "Express ...
876
votes
7
answers
646k
views
Best practices for API versioning? [closed]
Are there any known how-tos or best practices for web service REST API versioning?
I have noticed that AWS does versioning by the URL of the endpoint. Is this the only way or are there other ways to ...
711
votes
30
answers
619k
views
How can I force clients to refresh JavaScript files?
We are currently working in a private beta and so are still in the process of making fairly rapid changes, although obviously as usage is starting to ramp up, we will be slowing down this process. ...
544
votes
9
answers
478k
views
How to have an auto incrementing version number (Visual Studio)? [duplicate]
I want to store a set of integers that get auto incremented at build time:
int MajorVersion = 0;
int MinorVersion = 1;
int Revision = 92;
When I compile, it would auto-increment Revision. When I ...
433
votes
10
answers
262k
views
npm - how to show the latest version of a package
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.
336
votes
18
answers
102k
views
Temporarily put away uncommitted changes in Subversion (a la "git-stash")
While programming software stored in a Subversion repo, I often modify some files, then notice that I'd like to do some preparatory change for my main work. E.g. while implementing new functionality, ...
283
votes
38
answers
159k
views
How to compare two strings in dot separated version format in Bash?
Is there any way to compare such strings on bash, e.g.: 2.4.5 and 2.8 and 2.4.5.1?
244
votes
18
answers
39k
views
A definitive guide to API-breaking changes in .NET
I would like to gather as much information as possible regarding API versioning in .NET/CLR, and specifically how API changes do or do not break client applications. First, let's define some terms:
...
212
votes
33
answers
166k
views
How do you compare two version Strings in Java?
Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be. I need to ...
211
votes
12
answers
202k
views
Best Practice: Software Versioning [closed]
Is there any guideline or standard best practice how to version a software you develop in your spare time for fun, but nevertheless will be used by some people? I think it's necessary to version such ...
207
votes
12
answers
100k
views
How to version control a record in a database [closed]
Let's say that I have a record in the database and that both admin and normal users can do updates.
Can anyone suggest a good approach/architecture on how to version control every change in this table ...
187
votes
11
answers
155k
views
How to Store Historical Data [closed]
Some co-workers and I got into a debate on the best way to store historical data. Currently, for some systems, I use a separate table to store historical data, and I keep an original table for the ...
178
votes
3
answers
194k
views
Skip composer PHP requirement
We are using PHPCI and composer. The server which runs PHPCI is on PHP 5.3.
For a project we added the Facebook PHP SDK, using composer. It requires PHP 5.4.
Composer gets triggered by PHPCI and get ...
168
votes
7
answers
93k
views
Compare version numbers without using split function
How do I compare version numbers?
For instance:
x = 1.23.56.1487.5
y = 1.24.55.487.2
162
votes
6
answers
64k
views
Best practices/guidance for maintaining assembly version numbers
I'm looking for pointers, suggestions, and even dictation on how to manage the three different assembly version numbers for a .NET assembly. The Product version is the simplest, as this seems would ...
158
votes
4
answers
54k
views
How do I switch to another subversion branch in Intellij?
What is the concept of switching branches in IntelliJ?
I must be either blind or an idiot...
I would assume there'd be a "switch to copy" option or something like that, but there is none...
EDIT for ...
151
votes
7
answers
39k
views
API Versioning for Rails Routes
I'm trying to version my API like Stripe has. Below is given the latest API version is 2.
/api/users returns a 301 to /api/v2/users
/api/v1/users returns a 200 of users index at version 1
/api/v3/...
150
votes
10
answers
134k
views
How to manage REST API versioning with spring?
I've been searching how to manage a REST API versions using Spring 3.2.x, but I haven't find anything that is easy to maintain. I'll explain first the problem I have, and then a solution... but I do ...
148
votes
12
answers
184k
views
Setting the version number for .NET Core projects - CSPROJ - not JSON projects
This question is very similar to Setting the version number for .NET Core projects, but not the same. Using the latest stable version of .NET Core at the time of writing (1.1) and VS2017, .NET Core ...
138
votes
15
answers
218k
views
How do I set the version information for an existing .exe, .dll?
As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not.
I ...
138
votes
9
answers
96k
views
Build and Version Numbering for Java Projects (ant, cvs, hudson)
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 ...
137
votes
16
answers
102k
views
How do you version your database schema? [closed]
How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process?
I am interested in conventions for ...
132
votes
16
answers
46k
views
Database Design for Revisions?
We have a requirement in project to store all the revisions(Change History) for the entities in the database. Currently we have 2 designed proposals for this:
e.g. for "Employee" Entity
Design 1:
--...
131
votes
4
answers
13k
views
How do you manage the underlying codebase for a versioned API?
I've been reading up on versioning strategies for ReST APIs, and something none of them appear to address is how you manage the underlying codebase.
Let's say we're making a bunch of breaking changes ...
130
votes
10
answers
121k
views
How to perform better document version control on Excel files and SQL schema files
I am in charge of several Excel files and SQL schema files. How should I perform better document version control on these files?
I need to know the part modified (different part) in these files and ...
122
votes
25
answers
210k
views
A regex for version number parsing
I have a version number of the following form:
version.release.modification
where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of ...
116
votes
12
answers
122k
views
How can I auto increment the C# assembly version via our CI platform (Hudson)?
Myself and my group are horrendous at incrementing assembly version numbers and we frequently ship assemblies with 1.0.0.0 versions. Obviously, this causes a lot of headaches.
We're getting a lot ...
115
votes
8
answers
84k
views
Automatically update version number
I would like the version property of my application to be incremented for each build but I'm not sure on how to enable this functionality in Visual Studio (2005/2008). I have tried to specify the ...
114
votes
11
answers
66k
views
How to version REST URIs
What is the best way to version REST URIs? Currently we have a version # in the URI itself, ie.
http://example.com/users/v4/1234/
for version 4 of this representation.
Does the version belong in ...
108
votes
5
answers
183k
views
How to manage the version number in Git?
Let's imagine the blerp command line tool maintained on git. This tool has the (hidden) --version option which returns its version (let's say 0.1.2) and another --commit which returns the commit ...
107
votes
4
answers
48k
views
ASP.NET MVC security patch to version 3.0.0.1 breaks build [duplicate]
After installing the ASP.NET MVC 3 security update KB2990942 it appears the MVC version increased from 3.0.0.0 to 3.0.0.1. This causes Visual Studio to no longer find the reference.
<Reference ...
101
votes
7
answers
10k
views
How do I sync the SVN revision number with my ASP.NET web site?
Stack Overflow has a subversion version number at the bottom:
svn revision: 679
I want to use such automatic versioning with my .NET Web Site/Application, Windows Forms, WPD projects/solutions.
...
98
votes
3
answers
66k
views
Move tag one commit ahead
I have a repository with only one branch (master). I'm the only contributor to my repo.
I've recently added a tag, both locally and pushed to GitHub. After making what I though was the last necessary ...
95
votes
8
answers
81k
views
Line history viewer - Git
I wondered if any of you knew of a tool that would allow me to select a line in my code and then view a list view of the history of that line on a commit-by-commit basis.
Does anyone know of such a ...
90
votes
1
answer
20k
views
What does M1 mean in a maven repository?
I've been using maven for a while, and I often review repositories before selected what version I want to use. I don't entirely understand what the extensions mean.
I know that when I see extensions ...
83
votes
5
answers
34k
views
Execute Maven plugin goal on parent module, but not on children
We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin to increment a build number and then check it into source control.
If I define the plugin in the ...
80
votes
15
answers
58k
views
How to "unversion" a file in either svn and/or git
It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files).
If I commit this file, I will mess up the paths on all the ...
78
votes
2
answers
92k
views
Maven versioning best practices [closed]
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 ...
76
votes
3
answers
30k
views
How do you use multiple versions of the same R package?
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 ...
76
votes
2
answers
47k
views
What are the best practices for versioning XML schemas?
I often have to design XML schemas for different XML-bases import routines. It is clear that XML schemas will evolve over time or they could contain bugs to be fixed, so it is important to capture the ...
74
votes
7
answers
19k
views
Git and the Umlaut problem on Mac OS X
Today I discovered a bug for Git on Mac OS X.
For example, I will commit a file with the name überschrift.txt with the German special character Ü at the beginning. From the command git ...
73
votes
6
answers
39k
views
Gradle script to autoversion and include the commit hash in Android
I need to write a gradle script to auto version my application on every commit. I need to also include the commit hash as a reference in the application for testers.
I am confused how auto versioning ...
66
votes
7
answers
61k
views
How to version build artifacts using GitHub Actions?
My use case is I want to have a unique version number for artifacts per each build/run. With current tools like CircleCI, Travis, etc. there is a build number available which is basically a counter ...
66
votes
3
answers
23k
views
Should I pin my Python dependencies versions?
I am about to release a Python library I've been working on the past few weeks. I've read a lot about Python dependencies but something is not quite clear yet:
Some people pretend you should never pin ...
62
votes
5
answers
31k
views
how to release a project which depends on a 3rd party SNAPSHOT project in maven
i would like to release a snapshot project 'foo-1.0-SNAPSHOT' using the maven release plugin. The project depends on a 3rd party module 'bar-1.0-SNAPSHOT' which is not released yet.
I use the option '...
62
votes
12
answers
112k
views
How to allow users to check for the latest app version from inside the app?
I want to add a "Check for update" button in apps so that when someone clicks it, it will display a toast message / progress dialog for checking the app's version.
If new version is found the apps ...
60
votes
10
answers
33k
views
Java project: should .classpath .project file be committed into repository? [duplicate]
Should I check in my .project and .classpath files?
My friend told me that I should only check in .java files and the build.xml to guarantee portability. He said ".classpath will cause you much less ...
58
votes
1
answer
59k
views
create version.txt file in project dir via build.gradle task
Apologies in advance for my ignorance. I'm very new to gradle.
My is goal is to have some task in my build.gradle file, wherein a file 'version.txt' is created in my project directory whenever I run ...