[SERVER-28288] Windows MongoDB 3.4.1 tools show "built-without-version-string" instead of the actual version Created: 18/Jan/17  Updated: 01/May/17  Resolved: 05/Apr/17

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 3.4.4, 3.5.4

Type: Bug Priority: Major - P3
Reporter: Pavel Duchovny Assignee: Gabriel Russell (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7


Issue Links:
Backports
Related
is related to SERVER-28256 RHEL 6 3.0.14 tarball has 3.0.13 tool... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.4
Sprint: Platforms 2017-03-06, Platforms 2017-04-17
Participants:

 Description   

I have downloaded and installed the latest (3.4.1) for Windows: "Windows Server 2008 R2 64-bit and later, with SSL support x64".

When running all "go" related tools with the /version flag the git and tool version are missing and replaced with "built-without-git-spec" and "built-without-version-string":

C:\Program Files\MongoDB\Server\3.4\bin>mongodump.exe /version
mongodump version: built-without-version-string
git version: built-without-git-spec
Go version: go1.7
   os: windows
   arch: amd64
   compiler: gc
OpenSSL version: OpenSSL 1.0.1t  3 May 2016
 
C:\Program Files\MongoDB\Server\3.4\bin>mongorestore.exe /version
mongorestore version: built-without-version-string
git version: built-without-git-spec
Go version: go1.7
   os: windows
   arch: amd64
   compiler: gc
OpenSSL version: OpenSSL 1.0.1t  3 May 2016



 Comments   
Comment by Githook User [ 01/May/17 ]

Author:

{u'username': u'gabrielrussell', u'name': u'Gabriel Russell', u'email': u'gabriel.russell@mongodb.com'}

Message: TOOLS-1596 set version before setting gopath

On windows when we set up the gopath, we copy the source tree
in the directory that we will build from. This means that if we
want to modify the source code with a version, we need to do it
before we copy the files.
Branch: v3.4
https://github.com/mongodb/mongo/commit/8f6ff3212b128efd1ff746cabfd5e1f36761fdd7

Comment by Githook User [ 09/Mar/17 ]

Author:

{u'username': u'gabrielrussell', u'name': u'Gabriel Russell', u'email': u'gabriel.russell@mongodb.com'}

Message: TOOLS-1596 set version before setting gopath

On windows when we set up the gopath, we copy the source tree
in the directory that we will build from. This means that if we
want to modify the source code with a version, we need to do it
before we copy the files.
Branch: master
https://github.com/mongodb/mongo/commit/e9b27a1967732235d5ab6e2b28de0dc333d82a2d

Generated at Thu Feb 08 04:17:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.