Project

General

Profile

Actions

Bug #8401

closed

package build results in changes to Gemfile.lock files in git repo

Added by Joshua Randall about 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Deployment
Target version:
-
Story points:
-

Description

Performing a full build (e.g. `./arvados-dev/jenkins/run-build-packages-all-targets.sh`) on a WORKSPACE that is a git working directory results in a dirty working directory after the build.

This appears to be because of changes that `bundle` makes to the `Gemfile.lock` files in the apps/workbench and services/api directories:

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   apps/workbench/Gemfile.lock
        modified:   services/api/Gemfile.lock

It would be good if source-controlled files were not modified during the build (or possibly if they were cleaned up with a `git checkout` afterwards?).

Actions #1

Updated by Brett Smith about 10 years ago

This issue isn't limited to the package builds. Running bundle install can cause this, depending on the version of Bundler you have installed. You'll need to do this to do development or run tests, too.

This seems to be more of a Bundler issue. See, e.g., https://github.com/bundler/bundler/issues/3697 (which was closed WONTFIX)

Actions #2

Updated by Brett Smith about 10 years ago

Josh, what version of Bundler are you using? Upgrading to 1.10+ may make this issue go away: that's when Bundler started adding these sections, but it's a lot more careful about when it does it, apparently only doing so if it's making other changes to Gemfile.lock.

We can't encode this in Gemfile.lock itself, because Bundler is the thing that reads that file to determine Gem versions in the first place…

Actions #3

Updated by Peter Amstutz about 6 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF