question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Wrappers update check job cannot find date.txt

See original GitHub issue

See https://github.com/krzema12/github-actions-kotlin-dsl/runs/7624054781?check_suite_focus=true#step:4:143

 Error: Exception in thread "main" java.io.FileNotFoundException: build/action-yaml/date.txt (No such file or directory)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:187)
	at kotlin.io.FilesKt__FileReadWriteKt.writeBytes(FileReadWrite.kt:108)
	at kotlin.io.FilesKt__FileReadWriteKt.writeText(FileReadWrite.kt:134)
	at kotlin.io.FilesKt__FileReadWriteKt.writeText$default(FileReadWrite.kt:134)
	at it.krzeminski.githubactions.wrappergenerator.metadata.MetadataReadingKt.deleteActionYamlCacheIfObsolete(MetadataReading.kt:92)
	at it.krzeminski.githubactions.wrappergenerator.GenerationEntryPointKt.generateWrappers(GenerationEntryPoint.kt:40)
	at it.krzeminski.githubactions.wrappergenerator.GenerationEntryPointKt.main(GenerationEntryPoint.kt:35)
	at it.krzeminski.githubactions.wrappergenerator.GenerationEntryPointKt.main(GenerationEntryPoint.kt)

https://github.com/krzema12/github-actions-kotlin-dsl/blob/b373cf73760fa62bfd334864ffe79b3d0300c456/wrapper-generator/src/main/kotlin/it/krzeminski/githubactions/wrappergenerator/metadata/MetadataReading.kt#L92

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jmfayardcommented, Aug 3, 2022

@krzema12 oh the file is build/action-yaml/date.txt maybe we need to do File("build/action-yaml").mkdirs() to be sure the parent directory exists

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug listing with status RESOLVED with resolution FIXED as at ...
Bug listing with status RESOLVED with resolution FIXED as at 2022/12/17 06:46:03.
Read more >
What does the error message "fork failed: Resource ...
The system ran out of memory and new processes were unable to start because they could not allocate memory. There is not an...
Read more >
Could not find a version that satisfies the requirement in python
While running pip install virtualenv command in terminal I am getting following error. Could not find a version that satisfies the requirement ...
Read more >
Building a Native Executable - Quarkus
Compiling the application to a native executable ... The production executable will contain only the version.txt resource, no superfluous test data.
Read more >
Microsoft Information Protection (MIP) SDK version release ...
Added support for offline publishing preview feature. Fixed a bug where wrappers were missing telemetry cloud for sovereign cloud scenarios.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found