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
Filter by
Sorted by
Tagged with
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 (...
brendan's user avatar
  • 12k
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 ...
Abhik Bose Pramanik's user avatar
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 ...
Swaroop C H's user avatar
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. ...
AdamB's user avatar
  • 8,960
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 ...
esac's user avatar
  • 24.4k
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.
Trantor Liu's user avatar
  • 8,970
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, ...
sleske's user avatar
  • 82.7k
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?
exabiche's user avatar
  • 2,995
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 ...
Bill the Lizard's user avatar
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 ...
RoflcoptrException's user avatar
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 ...
Niels Bosma's user avatar
  • 11.9k
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 ...
Aaron's user avatar
  • 7,491
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 ...
Armin's user avatar
  • 15.7k
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
Sankar M's user avatar
  • 4,629
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 ...
ProfK's user avatar
  • 50.1k
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 ...
PeterP's user avatar
  • 4,502
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/...
maletor's user avatar
  • 7,102
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 ...
Augusto's user avatar
  • 29.2k
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 ...
Jay's user avatar
  • 9,851
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 ...
Carl's user avatar
  • 2,483
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 ...
andersoj's user avatar
  • 22.6k
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 ...
Eran Galperin's user avatar
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: --...
Ramesh Soni's user avatar
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 ...
Dylan Beattie's user avatar
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 ...
Marcus Thornton's user avatar
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 ...
Andrew Borley's user avatar
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 ...
Allen Rice's user avatar
  • 19.2k
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 ...
Robert Höglund's user avatar
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 ...
Mike Pone's user avatar
  • 19.1k
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 ...
nowox's user avatar
  • 27.4k
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 ...
usr's user avatar
  • 170k
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. ...
Zack Peterson's user avatar
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 ...
Gabriel's user avatar
  • 41.7k
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 ...
David.LPower's user avatar
  • 1,113
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 ...
Fred Haslam's user avatar
  • 8,993
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 ...
Dougnukem's user avatar
  • 14.8k
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 ...
Mo.'s user avatar
  • 15.2k
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 ...
shabunc's user avatar
  • 23.9k
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 ...
Richie Cotton's user avatar
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 ...
Regent's user avatar
  • 5,562
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 ...
0xPixelfrost's user avatar
  • 10.3k
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 ...
Shatazone's user avatar
  • 2,462
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 ...
moorara's user avatar
  • 4,076
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 ...
ereOn's user avatar
  • 54.6k
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 '...
Christian's user avatar
  • 693
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 ...
xDragonZ's user avatar
  • 12.6k
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 ...
sean's user avatar
  • 827
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 ...
Chris Covney's user avatar

1
2 3 4 5
63