Giter Club home page Giter Club logo

Comments (5)

lukaszwawrzyk avatar lukaszwawrzyk commented on June 20, 2024 1

Hi! There is no direct way to do this for all dependencies automatically.
What you can do, is pin each dependency using update-rules:

update-rules:
  - dependencies: commons-io:commons-io
    pin: "2."
  - dependencies: com.typesafe.config
    pin: "3."

from bazel-steward.

lukaszwawrzyk avatar lukaszwawrzyk commented on June 20, 2024

It is now possible as a new bumping strategy.
Either patch-minor - will bump to the latest patch before bumping major or minor-patch - will first bump to the latest minor+patch and only if no newer minor is available, will bump patch.
Neither of these bump major.

configure it with

update-rules:
  - bumping: minor-patch

it would set this strategy for all dependencies

from bazel-steward.

dhalperi avatar dhalperi commented on June 20, 2024

This is cool, will check it out!

from bazel-steward.

dhalperi avatar dhalperi commented on June 20, 2024

Does this work? e.g., https://github.com/batfish/batfish/actions/runs/7886257435/job/21519127953 still seems to be trying to upgrade major versions (bazel 7.0.2).

here's the config: https://github.com/batfish/batfish/blob/master/.bazel-steward.yaml

from bazel-steward.

lukaszwawrzyk avatar lukaszwawrzyk commented on June 20, 2024

@dhalperi I am sorry for the confusion. The feature does work, the problem is with picking up your config file.
Update your github actions with:

      - uses: VirtusLab/bazel-steward@latest
        with:
          configuration-path: "./.bazel-steward.yaml"

Docs are confusing, as they state that you can use {.,}bazel-steward.y{a,}ml as config name and bazel steward will pick it up. However this is only true if --configuration-path is not specified explicitly in the command line. The github action does specify a default configuration path as bazel-steward.yaml and passes it as --configuration-path to Bazel Steward, thus the default detection logic doesn't kick.

We should clean up the definition of github action to by default use the CLI app default logic rather than always pass something in the --configuration-path flag.

from bazel-steward.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.