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

Control which parts of files cannot be updated #58

Open
lukaszwawrzyk opened this issue Jan 18, 2023 · 0 comments
Open

Control which parts of files cannot be updated #58

lukaszwawrzyk opened this issue Jan 18, 2023 · 0 comments
Labels
feature New feature or request

Comments

@lukaszwawrzyk
Copy link
Collaborator

lukaszwawrzyk commented Jan 18, 2023

This issue is about fine grained control over updating files with versions. If for whatever reason it is undesired that bazel steward edits some version in some file (heuristics is wrong or anything), it should be possible to exclude some part of file from the detection/replacement mechanism.
We can use similar mechanism as linters/formatters do i.e. use comments like

block:

# bazel-steward off
MY_VERSION = "1.0.0"
MY_OTHER_VERSION = "1.0.2"
# bazel-steward on

inline

MY_VERSION = "1.0.3" # bazel-steward off

This is an extension of #61

@lukaszwawrzyk lukaszwawrzyk added the feature New feature or request label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant