New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single line Gemfile; much older version of gem installed if version unspecified #5154

Closed
mccalluc opened this Issue Nov 4, 2016 · 13 comments

Comments

Projects
None yet
6 participants
@mccalluc

mccalluc commented Nov 4, 2016

I have read #3089, so I don't think this is really a bug, but the behavior surprised me, and perhaps this will be useful to you as an edge case to improve. (I had not been pinning version numbers because what really matters is the version github.io uses, and I didn't want to suggest we had control over that, but going forward I will, and that will fix everything for us.)

source 'https://rubygems.org'
gem 'github-pages'

produces "Using github-pages 39"

source 'https://rubygems.org'
gem 'github-pages', '104'

produces "Using github-pages 104"

Looking at the debug logs, I can see that in the first case it begins with 104, but then falls all the way back to 39, rather than falling to back to an earlier version of an underlying dependency.

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Nov 5, 2016

Member

What's the output of bundle env?

Member

segiddins commented Nov 5, 2016

What's the output of bundle env?

@mccalluc

This comment has been minimized.

Show comment
Hide comment
@mccalluc

mccalluc Nov 5, 2016

$ bundle env
Environment

    Bundler   1.13.6
    Rubygems  2.4.8
    Ruby      2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
    GEM_HOME  /Users/chuck/.rvm/gems/ruby-2.2.2
    GEM_PATH  /Users/chuck/.rvm/gems/ruby-2.2.2:/Users/chuck/.rvm/gems/ruby-2.2.2@global
    RVM       1.27.0 (latest)
    Git       2.7.4 (Apple Git-66)
    rubygems-bundler (1.4.4)

Gemfile

    source 'https://rubygems.org'
    gem 'github-pages'

Gemfile.lock

    GEM
      remote: https://rubygems.org/
      specs:
        RedCloth (4.2.9)
        activesupport (5.0.0.1)
          concurrent-ruby (~> 1.0, >= 1.0.2)
          i18n (~> 0.7)
          minitest (~> 5.1)
          tzinfo (~> 1.1)
        addressable (2.4.0)
        blankslate (2.1.2.4)
        classifier-reborn (2.0.4)
          fast-stemmer (~> 1.0)
        coffee-script (2.4.1)
          coffee-script-source
          execjs
        coffee-script-source (1.10.0)
        colorator (0.1)
        concurrent-ruby (1.0.2)
        ethon (0.9.1)
          ffi (>= 1.3.0)
        execjs (2.7.0)
        faraday (0.9.2)
          multipart-post (>= 1.2, < 3)
        fast-stemmer (1.0.2)
        ffi (1.9.14)
        gemoji (2.1.0)
        github-pages (39)
          RedCloth (= 4.2.9)
          github-pages-health-check (~> 0.2)
          jekyll (= 2.4.0)
          jekyll-coffeescript (= 1.0.1)
          jekyll-feed (= 0.3.1)
          jekyll-mentions (= 0.2.1)
          jekyll-redirect-from (= 0.8.0)
          jekyll-sass-converter (= 1.3.0)
          jekyll-sitemap (= 0.8.1)
          jemoji (= 0.5.0)
          kramdown (= 1.5.0)
          liquid (= 2.6.2)
          maruku (= 0.7.0)
          mercenary (~> 0.3)
          pygments.rb (= 0.6.3)
          rdiscount (= 2.1.7)
          redcarpet (= 3.3.2)
          terminal-table (~> 1.4)
        github-pages-health-check (0.3.2)
          net-dns (~> 0.6)
          public_suffix (~> 1.4)
          typhoeus (~> 0.7)
        html-pipeline (1.9.0)
          activesupport (>= 2)
          nokogiri (~> 1.4)
        i18n (0.7.0)
        jekyll (2.4.0)
          classifier-reborn (~> 2.0)
          colorator (~> 0.1)
          jekyll-coffeescript (~> 1.0)
          jekyll-gist (~> 1.0)
          jekyll-paginate (~> 1.0)
          jekyll-sass-converter (~> 1.0)
          jekyll-watch (~> 1.1)
          kramdown (~> 1.3)
          liquid (~> 2.6.1)
          mercenary (~> 0.3.3)
          pygments.rb (~> 0.6.0)
          redcarpet (~> 3.1)
          safe_yaml (~> 1.0)
          toml (~> 0.1.0)
        jekyll-coffeescript (1.0.1)
          coffee-script (~> 2.2)
        jekyll-feed (0.3.1)
        jekyll-gist (1.4.0)
          octokit (~> 4.2)
        jekyll-mentions (0.2.1)
          html-pipeline (~> 1.9.0)
          jekyll (~> 2.0)
        jekyll-paginate (1.1.0)
        jekyll-redirect-from (0.8.0)
          jekyll (>= 2.0)
        jekyll-sass-converter (1.3.0)
          sass (~> 3.2)
        jekyll-sitemap (0.8.1)
        jekyll-watch (1.5.0)
          listen (~> 3.0, < 3.1)
        jemoji (0.5.0)
          gemoji (~> 2.0)
          html-pipeline (~> 1.9)
          jekyll (>= 2.0)
        kramdown (1.5.0)
        liquid (2.6.2)
        listen (3.0.8)
          rb-fsevent (~> 0.9, >= 0.9.4)
          rb-inotify (~> 0.9, >= 0.9.7)
        maruku (0.7.0)
        mercenary (0.3.6)
        mini_portile2 (2.1.0)
        minitest (5.9.1)
        multipart-post (2.0.0)
        net-dns (0.8.0)
        nokogiri (1.6.8.1)
          mini_portile2 (~> 2.1.0)
        octokit (4.4.1)
          sawyer (~> 0.7.0, >= 0.5.3)
        parslet (1.5.0)
          blankslate (~> 2.0)
        posix-spawn (0.3.12)
        public_suffix (1.5.3)
        pygments.rb (0.6.3)
          posix-spawn (~> 0.3.6)
          yajl-ruby (~> 1.2.0)
        rb-fsevent (0.9.8)
        rb-inotify (0.9.7)
          ffi (>= 0.5.0)
        rdiscount (2.1.7)
        redcarpet (3.3.2)
        safe_yaml (1.0.4)
        sass (3.4.22)
        sawyer (0.7.0)
          addressable (>= 2.3.5, < 2.5)
          faraday (~> 0.8, < 0.10)
        terminal-table (1.7.3)
          unicode-display_width (~> 1.1.1)
        thread_safe (0.3.5)
        toml (0.1.2)
          parslet (~> 1.5.0)
        typhoeus (0.8.0)
          ethon (>= 0.8.0)
        tzinfo (1.2.2)
          thread_safe (~> 0.1)
        unicode-display_width (1.1.1)
        yajl-ruby (1.2.1)

    PLATFORMS
      ruby

    DEPENDENCIES
      github-pages

    BUNDLED WITH
       1.13.6

mccalluc commented Nov 5, 2016

$ bundle env
Environment

    Bundler   1.13.6
    Rubygems  2.4.8
    Ruby      2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
    GEM_HOME  /Users/chuck/.rvm/gems/ruby-2.2.2
    GEM_PATH  /Users/chuck/.rvm/gems/ruby-2.2.2:/Users/chuck/.rvm/gems/ruby-2.2.2@global
    RVM       1.27.0 (latest)
    Git       2.7.4 (Apple Git-66)
    rubygems-bundler (1.4.4)

Gemfile

    source 'https://rubygems.org'
    gem 'github-pages'

Gemfile.lock

    GEM
      remote: https://rubygems.org/
      specs:
        RedCloth (4.2.9)
        activesupport (5.0.0.1)
          concurrent-ruby (~> 1.0, >= 1.0.2)
          i18n (~> 0.7)
          minitest (~> 5.1)
          tzinfo (~> 1.1)
        addressable (2.4.0)
        blankslate (2.1.2.4)
        classifier-reborn (2.0.4)
          fast-stemmer (~> 1.0)
        coffee-script (2.4.1)
          coffee-script-source
          execjs
        coffee-script-source (1.10.0)
        colorator (0.1)
        concurrent-ruby (1.0.2)
        ethon (0.9.1)
          ffi (>= 1.3.0)
        execjs (2.7.0)
        faraday (0.9.2)
          multipart-post (>= 1.2, < 3)
        fast-stemmer (1.0.2)
        ffi (1.9.14)
        gemoji (2.1.0)
        github-pages (39)
          RedCloth (= 4.2.9)
          github-pages-health-check (~> 0.2)
          jekyll (= 2.4.0)
          jekyll-coffeescript (= 1.0.1)
          jekyll-feed (= 0.3.1)
          jekyll-mentions (= 0.2.1)
          jekyll-redirect-from (= 0.8.0)
          jekyll-sass-converter (= 1.3.0)
          jekyll-sitemap (= 0.8.1)
          jemoji (= 0.5.0)
          kramdown (= 1.5.0)
          liquid (= 2.6.2)
          maruku (= 0.7.0)
          mercenary (~> 0.3)
          pygments.rb (= 0.6.3)
          rdiscount (= 2.1.7)
          redcarpet (= 3.3.2)
          terminal-table (~> 1.4)
        github-pages-health-check (0.3.2)
          net-dns (~> 0.6)
          public_suffix (~> 1.4)
          typhoeus (~> 0.7)
        html-pipeline (1.9.0)
          activesupport (>= 2)
          nokogiri (~> 1.4)
        i18n (0.7.0)
        jekyll (2.4.0)
          classifier-reborn (~> 2.0)
          colorator (~> 0.1)
          jekyll-coffeescript (~> 1.0)
          jekyll-gist (~> 1.0)
          jekyll-paginate (~> 1.0)
          jekyll-sass-converter (~> 1.0)
          jekyll-watch (~> 1.1)
          kramdown (~> 1.3)
          liquid (~> 2.6.1)
          mercenary (~> 0.3.3)
          pygments.rb (~> 0.6.0)
          redcarpet (~> 3.1)
          safe_yaml (~> 1.0)
          toml (~> 0.1.0)
        jekyll-coffeescript (1.0.1)
          coffee-script (~> 2.2)
        jekyll-feed (0.3.1)
        jekyll-gist (1.4.0)
          octokit (~> 4.2)
        jekyll-mentions (0.2.1)
          html-pipeline (~> 1.9.0)
          jekyll (~> 2.0)
        jekyll-paginate (1.1.0)
        jekyll-redirect-from (0.8.0)
          jekyll (>= 2.0)
        jekyll-sass-converter (1.3.0)
          sass (~> 3.2)
        jekyll-sitemap (0.8.1)
        jekyll-watch (1.5.0)
          listen (~> 3.0, < 3.1)
        jemoji (0.5.0)
          gemoji (~> 2.0)
          html-pipeline (~> 1.9)
          jekyll (>= 2.0)
        kramdown (1.5.0)
        liquid (2.6.2)
        listen (3.0.8)
          rb-fsevent (~> 0.9, >= 0.9.4)
          rb-inotify (~> 0.9, >= 0.9.7)
        maruku (0.7.0)
        mercenary (0.3.6)
        mini_portile2 (2.1.0)
        minitest (5.9.1)
        multipart-post (2.0.0)
        net-dns (0.8.0)
        nokogiri (1.6.8.1)
          mini_portile2 (~> 2.1.0)
        octokit (4.4.1)
          sawyer (~> 0.7.0, >= 0.5.3)
        parslet (1.5.0)
          blankslate (~> 2.0)
        posix-spawn (0.3.12)
        public_suffix (1.5.3)
        pygments.rb (0.6.3)
          posix-spawn (~> 0.3.6)
          yajl-ruby (~> 1.2.0)
        rb-fsevent (0.9.8)
        rb-inotify (0.9.7)
          ffi (>= 0.5.0)
        rdiscount (2.1.7)
        redcarpet (3.3.2)
        safe_yaml (1.0.4)
        sass (3.4.22)
        sawyer (0.7.0)
          addressable (>= 2.3.5, < 2.5)
          faraday (~> 0.8, < 0.10)
        terminal-table (1.7.3)
          unicode-display_width (~> 1.1.1)
        thread_safe (0.3.5)
        toml (0.1.2)
          parslet (~> 1.5.0)
        typhoeus (0.8.0)
          ethon (>= 0.8.0)
        tzinfo (1.2.2)
          thread_safe (~> 0.1)
        unicode-display_width (1.1.1)
        yajl-ruby (1.2.1)

    PLATFORMS
      ruby

    DEPENDENCIES
      github-pages

    BUNDLED WITH
       1.13.6
@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Nov 5, 2016

Member

Thanks! Looks like a bug in the backjumping, for some reason molinillo is going straight back to the root dependency instead of unwinding to consider an older version of addressable

Member

segiddins commented Nov 5, 2016

Thanks! Looks like a bug in the backjumping, for some reason molinillo is going straight back to the root dependency instead of unwinding to consider an older version of addressable

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Nov 5, 2016

Member

I have a potential fix for this in Molinillo, thanks for the great bug report!

Member

segiddins commented Nov 5, 2016

I have a potential fix for this in Molinillo, thanks for the great bug report!

@nickmccurdy

This comment has been minimized.

Show comment
Hide comment
@nickmccurdy

nickmccurdy Nov 9, 2016

Is there anything we can do to help?

nickmccurdy commented Nov 9, 2016

Is there anything we can do to help?

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Nov 9, 2016

Member

Not really, just have to land CocoaPods/Molinillo#54

Member

segiddins commented Nov 9, 2016

Not really, just have to land CocoaPods/Molinillo#54

MatthewFluet added a commit to SIGPLAN/SIGPLAN.github.io that referenced this issue Nov 11, 2016

ckirsch added a commit to ckirsch/SIGPLAN.github.io that referenced this issue Nov 12, 2016

jklapuch pushed a commit to jklapuch/startjekyll that referenced this issue Nov 14, 2016

krcabrer added a commit to LabSCN-unalmed/labscn-unalmed.github.io that referenced this issue Nov 16, 2016

delcypher added a commit to klee/klee.github.io that referenced this issue Nov 17, 2016

Workaround bug in bundler where the wrong version of `github-pages`
is fetched.

This has been reported at

github/pages-gem#351
bundler/bundler#5154

This unfortunately means that 999a49a
was wrong because the wrong gem versions were fetched which broke the
build. So the `Gemfile.lock` had to be regenerated.

carlesfernandez added a commit to gnss-sdr/geniuss-place that referenced this issue Nov 19, 2016

Improve sidebar in small screens, other CSS improvements and gem updates
Now the sidebar collapses to a toggle button in small screens such as in smartphones.
Fix bundler bug with workaround (see bundler/bundler#5154)
Update gems

Re-order variables and main.scss

ravicious added a commit to ravicious/ravicious.github.io that referenced this issue Nov 23, 2016

Update github-pages gem
I had to manually specify the gem version as a workaround for the Bundler issue.
bundler/bundler#5154

javierjulio added a commit to javierjulio/javierjulio.github.io that referenced this issue Nov 24, 2016

Update github-pages to latest and use Ruby 2.3.1
Bundler was taking so long to resolve dependencies on updating so
deleted the Gemfile.lock but noticed that much older versions of
github-pages and jekyll were being installed. This is a known issue
with bundler and issue reported is with github-pages
bundler/bundler#5154

TimWolla added a commit to WoltLab/woltlab.github.io that referenced this issue Nov 28, 2016

hefangshi added a commit to fex-team/fex-team.github.io that referenced this issue Nov 29, 2016

quotidian-ennui added a commit to adaptris/interlok-docs that referenced this issue Nov 30, 2016

Force gh-pages to be 105 rather than 39:
bundler/bundler#5154; let's see when that hits
our version of bundle!

nschonni added a commit to nschonni/government.github.com that referenced this issue Dec 1, 2016

antoinealb added a commit to cvra/cvra.github.io that referenced this issue Dec 4, 2016

Add explicit github-pages for upstream bundler bug
Otherwise a very old version is installed. See bundler/bundler#5154

pcarleton added a commit to pcarleton/pcarleton.github.io that referenced this issue Dec 4, 2016

Publish ubuntu post
And fix Gemfile issue with gitub-pages gem
bundler/bundler#5154

nschonni added a commit to nschonni/government.github.com that referenced this issue Dec 5, 2016

nschonni added a commit to nschonni/government.github.com that referenced this issue Dec 5, 2016

@falsandtru

This comment has been minimized.

Show comment
Hide comment
@falsandtru

falsandtru Dec 6, 2016

@segiddins When can we get the patched version?

falsandtru commented Dec 6, 2016

@segiddins When can we get the patched version?

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Dec 6, 2016

Member

When we release 1.14

Member

segiddins commented Dec 6, 2016

When we release 1.14

@falsandtru

This comment has been minimized.

Show comment
Hide comment
@falsandtru

falsandtru Dec 6, 2016

When will it be released?

falsandtru commented Dec 6, 2016

When will it be released?

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Dec 6, 2016

Member

We don't have a date set yet

Member

segiddins commented Dec 6, 2016

We don't have a date set yet

@falsandtru

This comment has been minimized.

Show comment
Hide comment
@falsandtru

falsandtru Dec 6, 2016

I see, thanks.

falsandtru commented Dec 6, 2016

I see, thanks.

Lax added a commit to Lax/lax.github.com that referenced this issue Dec 9, 2016

@lslezak lslezak referenced this issue Dec 9, 2016

Merged

Style fixes #80

@christophevg

This comment has been minimized.

Show comment
Hide comment
@christophevg

christophevg Sep 27, 2017

I have the impression that this problem has resurfaced: when doing a bundle update today I see the github-pages gem being downgraded again:

...
Using github-pages 75 (was 161)
Bundle updated!

Tested with bundler 1.15.4.

Trying to upgrade to the current prerelease (1.16.0.pre.2) using gem install bundler --pre, dependency resolution takes a very long time, as in: it takes too long to wait for ;-)

Current work-around, as shown above: I'm locking version 161.

christophevg commented Sep 27, 2017

I have the impression that this problem has resurfaced: when doing a bundle update today I see the github-pages gem being downgraded again:

...
Using github-pages 75 (was 161)
Bundle updated!

Tested with bundler 1.15.4.

Trying to upgrade to the current prerelease (1.16.0.pre.2) using gem install bundler --pre, dependency resolution takes a very long time, as in: it takes too long to wait for ;-)

Current work-around, as shown above: I'm locking version 161.

@nickmccurdy

This comment has been minimized.

Show comment
Hide comment
@nickmccurdy

nickmccurdy Jan 13, 2018

Currently, my Gemfile locks github-pages to 39 if I'm also depending on html-proofer. Is this accurate or is it another regression in bundler's version resolution? If I force a more recent version of github-pages or remove the html-proofer gem, my Gemfile depends on the latest version of github-pages.

nickmccurdy commented Jan 13, 2018

Currently, my Gemfile locks github-pages to 39 if I'm also depending on html-proofer. Is this accurate or is it another regression in bundler's version resolution? If I force a more recent version of github-pages or remove the html-proofer gem, my Gemfile depends on the latest version of github-pages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment