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

Error opening a present build.gradle file #14

Open
alexander-yevsyukov opened this issue Jul 23, 2020 · 0 comments
Open

Error opening a present build.gradle file #14

alexander-yevsyukov opened this issue Jul 23, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@alexander-yevsyukov
Copy link
Collaborator

When building spine.io by GitHub Actions I repeatedly get the following error:

Run ./_script/check-samples
Configuration file: /home/runner/work/SpineEventEngine.github.io/SpineEventEngine.github.io/_config.yml
/opt/hostedtoolcache/Ruby/2.7.1/x64/lib/ruby/gems/2.7.0/bundler/gems/embed-code-00d9e3083ff8/lib/commands/fragmentation.rb:342:in `content': Fragment file `/home/runner/work/SpineEventEngine.github.io/SpineEventEngine.github.io/.fragments/examples/hello/build.gradle` not found. This may indicate that the file is not includedin `code_includes` or is not readable. (RuntimeError)
jekyll 3.8.7 | Error:  Fragment file `/home/runner/work/SpineEventEngine.github.io/SpineEventEngine.github.io/.fragments/examples/hello/build.gradle` not found. This may indicate that the file is not includedin `code_includes` or is not readable.
	from /opt/hostedtoolcache/Ruby/2.7.1/x64/lib/ruby/gems/2.7.0/bundler/gems/embed-code-00d9e3083ff8/lib/commands/embedding_instruction.rb:80:in `content'
	from /opt/hostedtoolcache/Ruby/2.7.1/x64/lib/ruby/gems/2.7.0/bundler/gems/embed-code-00d9e3083ff8/lib/commands/embedding.rb:254:in `render_sample'
	from /opt/hostedtoolcache/Ruby/2.7.1/x64/lib/ruby/gems/2.7.0/bundler/gems/embed-code-00d9e3083ff8/lib/commands/embedding.rb:243:in `accept'
...

The check-samples script executed by GitHub does this:

source ~/.bash_profile
bundle exec jekyll checkCodeSamples

The error does not happen when running the check-samples script locally. And the .fragments directory on my machine does have the examples/hello/build.gradle file.

I suspect that the reason for the error could be concurrent file access with Gradle, which may lock the build.gradle file at some stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant