Skip to content
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

Multi platform #82

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Oct 15, 2019

  1. Refactor Bundix::Source to return a hash one-level above

    Allows the source to contribute parameters outside of the "source"
    lavoiesl committed Oct 15, 2019
    Configuration menu
    Copy the full SHA
    c68f8ef View commit details
    Browse the repository at this point in the history
  2. Move version to Source

    Allows to tweak the version depending on the platform
    lavoiesl committed Oct 15, 2019
    Configuration menu
    Copy the full SHA
    cf77be4 View commit details
    Browse the repository at this point in the history
  3. Change the mock fetcher to extend real fetcher

    Only mock the fetching part such that the internal logic is tested
    lavoiesl committed Oct 15, 2019
    Configuration menu
    Copy the full SHA
    8995ddf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c5155b9 View commit details
    Browse the repository at this point in the history
  5. Add the ruby platform to the gem version

    Knowing the exact platform of a compiled gem is important
    to download the correct gem and because different binaries have different hashes.
    
    Note that this change makes the gemset platform dependant.
    lavoiesl committed Oct 15, 2019
    Configuration menu
    Copy the full SHA
    b86d7c5 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2021

  1. Allow running bundix for a specific platform

    eg `bundix --platform=x86_64-darwin`
    jdelStrother committed May 24, 2021
    Configuration menu
    Copy the full SHA
    64c622e View commit details
    Browse the repository at this point in the history
  2. Store target_platform & gem_platform in the gemset

    Mostly just to help with cache-invalidation in find_cached_spec
    jdelStrother committed May 24, 2021
    Configuration menu
    Copy the full SHA
    5fba7d0 View commit details
    Browse the repository at this point in the history
  3. Allow generating multiple gemsets for multiple platforms

    `bundix --platforms=ruby,x86_64-darwin,aarch64-darwin` will generate
    gemset.nix, gemset.x86_64-darwin.nix, and aarch64-darwin.nix.
    jdelStrother committed May 24, 2021
    Configuration menu
    Copy the full SHA
    7d2dfb0 View commit details
    Browse the repository at this point in the history

Commits on May 25, 2021

  1. Fail noisily if we're trying to use a platform not listed in the lock…

    …file
    
    Otherwise we'll silently fetch pure-ruby gems for everything
    jdelStrother committed May 25, 2021
    Configuration menu
    Copy the full SHA
    4d08252 View commit details
    Browse the repository at this point in the history