prototool
prototool copied to clipboard
WKT proto files are not readable by non-root users in the docker image
Hi,
When running uber/prototool@sha256:b33d097587c4a616629c90ddec351d077272a7b7464edb59e92ffb541c462de1
(currently latest
) as a non-root user I am unable to access the WKT proto files in /usr/include, getting an error along the lines of:
2019-10-02T08:46:59.958Z WARN protoc returned a line we do not understand, please file this as an issue at https://github.com/uber/prototool/issues/new {"protocLine": "google/protobuf/empty.proto: Read access is denied for file: /usr/include/google/protobuf/empty.proto"}
looking in the image, the files seem to only be readable by root:
/work # ls -lrt /usr/include/google/protobuf/
total 104
-rw-r----- 1 root root 3745 Sep 10 02:27 wrappers.proto
...
Could these be set to chmod 0755?
What OS are you running on? Also how did you install prototool?
What OS are you running on? Also how did you install prototool?
Hi, I'm running the docker image on a MacOS 10.14 host
What are you actually trying to accomplish by accessing the WKT files?
I'm trying to lint my interfaces which use some of the WKTs. The command I'm running inside the container is prototool lint /apis
where /apis
is the location of my proto apis that is bind mounted into the container.