Comments (9)
from protolock.
This is especially important if the proto files import third-party proto files since those proto files are downloaded to some build, cache, or other ephemeral directory which leads to init
and commit
generating different proto.lock
contents depending on whether or not the proto files have been processed.
from protolock.
@noel-yap good point. Do you think the example shown in my initial comment covers the case you mentioned?
I also have #20 open which expands on the ignored protos using .gitignore (though would probably also make sense to consider other VCS ignore files as well).
from protolock.
I would say the example is sufficient in that what I had said can be extrapolated from it. A more direct example would have something like --ignore=build
(Gradle places build artifacts into a build
directory).
I'm personally kinda wary about tying this project to any specific VCS tool. Perhaps specifying the ignore file would be good enough if they abide by similar syntax in those files (eg Ant globs).
Thinking about it a bit more, the code already filters out non-proto
files so I'm guessing much of what would be in VCS ignore files would already be filtered out.
Anyway, having said all of the above, I'm working on the --ignore
feature and don't see much value add for the VCS ignore file feature so won't be working on that.
from protolock.
I would say the example is sufficient in that what I had said can be extrapolated from it. A more direct example would have something like --ignore=build (Gradle places build artifacts into a build directory).
Ok, great, thanks. If it's not clear, the example shows a comma-separated list of paths or filenames to ignore. Just wanted to make sure that was pointed out. Especially since you're starting work on this feature (many thanks by the way).
I'm personally kinda wary about tying this project to any specific VCS tool. Perhaps specifying the ignore file would be good enough if they abide by similar syntax in those files (eg Ant globs).
I agree. Although, there would really only be reason to support Git, Mercurial, and SVN in my opinion, and that doesn't seem too bad. The reason to auto-ignore paths in the ignorefiles is so that invoking protolock
with a long string of paths in the --ignore
option could get messy.
Thinking about it a bit more, the code already filters out non-proto files so I'm guessing much of what would be in VCS ignore files would already be filtered out.
I have a project where the make install
step will install protoc
into the repo's tree (but protoc-3
the directory where the binary lives in the repo tree is included in the .gitignore
), and I don't want to lock the .protos that exist in that directory. I'm sure there are many other cases where a similar problem is encountered. I'll do some testing and try to get more feedback.
from protolock.
Yeah, understood that --ignore
takes in a comma-separated list. I was assuming it involved only directories. Glad you mentioned specific files can be ignored, too.
Yeah, more real-life scenarios would be valuable input. Thanks.
I didn't mean to imply that the VCS ignore file feature wouldn't have value to anyone and everyone -- just not much value for my own needs (BTW, I'm creating a Gradle plugin for protolock
) at least for the time being. Far be it from me to try to stop someone else from working on this feature.
from protolock.
(BTW, I'm creating a Gradle plugin for protolock)
@noel-yap, can't wait to see it -- if you don't mind, we can link it on the README. I think it would be quite helpful to others.
from protolock.
Mind? I'm all for it! We'll likely test it out for a while at work before open-sourcing it.
from protolock.
@noel-yap awesome! that sounds great.
from protolock.
Related Issues (20)
- Commit command no longer saves the lock under certain circumstances HOT 6
- Cannot parse certain Protobuf files HOT 5
- Deterministic definition order. HOT 4
- What are the differences to Uberβs Prototool HOT 1
- use yaml for proto.lock to reduce diff HOT 6
- Plugin wiki readme json missing fields HOT 2
- Lock file does not record aggregate options with array values HOT 3
- Website incorrectly reports backwards compatibility with invalid proto files HOT 2
- Error building protolock on ppc64le HOT 2
- Processing a single file HOT 3
- Enum aliases not supported HOT 3
- Does protolock support proto2 ? HOT 1
- Propose to publish ARM64 binary in releases HOT 6
- Convert circleci jobs to GitHub Actions
- oneof structure is not persisted in protolock HOT 4
- Options not parsed at the Enum level HOT 2
- found "stream" but expected [rpc method] for a valid proto HOT 3
- Add artefacts to Maven repository HOT 5
- Update docker hub image HOT 3
- Allow ability to include proto files that are not in the root tree
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 protolock.