question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

To make sure builds are repeatable for all users and that upstream changes don’t impact the build process I always peg tools to particular versions, e.g:

#tool nuget:?package=Foo.Bar.Baz&version=1.0.0

This works well except in one particular case. Assume upstream makes significant backwards-incompatible changes and I update the build to support those changes. In that case I’ll bump the version number as necessary:

#tool nuget:?package=Foo.Bar.Baz&version=2.0.0

This will then work fine for fresh clones of the project, but for anyone updating an existing clone, the installed 1.0.0 version of the tool will persist. Thus their build will break until they delete the tools/Foo.Bar.Baz directory to force an update to 2.0.0

An “easy” solution would be to add the version to the directory so that instead of just tools/Foo.Bar.Baz you would have tools/Foo.Bar.Baz.1.0.0 and tools/Foo.Bar.Baz.2.0.0. However, that complicates resolving which tool to use if multiple copies may exist. #736 may be relevant here.

Thoughts?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gep13commented, Mar 17, 2017

@saasen this was the issue that I was referring to: https://github.com/cake-build/cake/issues/787 but it got bumped from 0.18.0 to 0.19.0.

1reaction
robertcoltheartcommented, Dec 1, 2016

@saasen This is solved by putting tool dependencies in the packages.config and using the latest bootstrapper from here. Changes to the packages.config and now MD5 checked and tools and re-downloaded if the versions change.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 5 BEST Version Control Software (Source Code ...
#1) Git ... Git is one of the best version control tools that is available in the present market. ... Click here for...
Read more >
What is version control | Atlassian Git Tutorial
Version control systems are software tools that help software teams manage changes to source code over time. As development environments have accelerated, ...
Read more >
Version control
In software engineering, version control is a class of systems responsible for managing changes to computer programs, documents, large web sites, ...
Read more >
List of Top Version Control Software 2023
What are the best version control software products? · GitLab · GitHub · bitBucket · Azure DevOps Server · AWS Code Commit ·...
Read more >
List of version-control software
This is a list of notable software for version control. Contents. 1 Local data model ... Autodesk Vault – Version control tool specifically...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found