Comments (5)
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.
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.
This is cool, will check it out!
from bazel-steward.
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.
@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)
- Clean up logs from Maven Extarctor
- Update "Failed to find a file" logs
- Add more info about finding Bazel Rules
- Test BazelRuleHeuristic
- Investigate why there is no suggestion for bazel version 5.4.0 -> 6.1.1 in this repository HOT 1
- Improve branch prefix
- Improve logging errors of MavenRepository
- Add support for configurable branch prefix
- Add handling for changes in url in rules
- Investigate bazel update to 6.1.1
- Use pinned maven dependencies in this repository
- Update update strategy to consider date of release for Bazel Rules
- Prepare and document easy way to run bazel steward outside github actions
- Bumpling strategy config is not aligned with code
- Prepare github pages to document bazel steward
- Support multiple WORKSPACES HOT 4
- Handle dependencies managed by bazel-deps HOT 1
- bazel steward silently hangs after pushing branch HOT 5
- Suggestions for scala and java deps are mangled HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel-steward.