You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Gitlab CI to build a docker image, where thePRONTO_GITLAB_API_PRIVATE_TOKEN=${TOKEN} bundle exec pronto run -f gitlab -c origin/master --exit-code command is run in the container that is spun up.
When the image is built, several files are ignored, including the README.md.
README.md has been added to the .pronto.yml exclude but is not returned by Dir['README.md'] in pronto/config.rb#excluded_files, as the file does not exist. However, the runner tries to run against the file as it was changed and is raising /<working_dir>/cache/ruby/2.5.0/gems/pronto-0.10.0/lib/pronto/runner.rb:50:in 'initialize': No such file or directory @ rb_sysopen - /<working_dir>/README.md (Errno::ENOENT).
Issue background:
Using Gitlab CI to build a docker image, where the
PRONTO_GITLAB_API_PRIVATE_TOKEN=${TOKEN} bundle exec pronto run -f gitlab -c origin/master --exit-code
command is run in the container that is spun up.When the image is built, several files are ignored, including the
README.md
.README.md
has been added to the.pronto.yml
exclude but is not returned byDir['README.md']
inpronto/config.rb#excluded_files
, as the file does not exist. However, the runner tries to run against the file as it was changed and is raising/<working_dir>/cache/ruby/2.5.0/gems/pronto-0.10.0/lib/pronto/runner.rb:50:in 'initialize': No such file or directory @ rb_sysopen - /<working_dir>/README.md (Errno::ENOENT)
.Contents of
.pronto.yml
Have also tried
'**/*.md'
,'**/README.md'
, and other wildcard combinations.'.gitlab-ci.yml'
also doesn't work as it is also ignored.Some contents of .dockerignore
These work but seem hacky
README.md
andgitlab-ci.yml
into the docker container.dockerignore
Other suggestions and workarounds welcome!
The text was updated successfully, but these errors were encountered: