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

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\runneradmin\AppData\Local\Temp\wingetcreate'. #453

Closed
JanDeDobbeleer opened this issue Sep 19, 2023 · 1 comment · Fixed by #452

Comments

@JanDeDobbeleer
Copy link
Contributor

Brief description of your issue

The executable exits with an error after successfully submitting a pull request when running in GitHub actions.

Steps to reproduce

See the error here and the way it's installed/used here.

Expected behavior

It doesn't exit with an error

Actual behavior

Telemetry Settings
------------------
The Windows Package Manager Manifest Creator collects usage data in order to improve your experience.
The data is anonymous and collected only by Microsoft.
By default, telemetry is enabled but can be disabled by running `wingetcreate settings` and editing your settings file.

Manifest validation succeeded: True

Submitting pull request for manifest...

Pull request can be found here: https://github.com/microsoft/winget-pkgs/pull/120206

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\runneradmin\AppData\Local\Temp\wingetcreate'.
   at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound)
   at System.IO.Enumeration.FileSystemEnumerator`1.Init()
   at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, Boolean isNormalized, EnumerationOptions options)
   at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized)
   at System.IO.Enumeration.FileSystemEnumerableFactory.FileInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
   at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
   at System.IO.DirectoryInfo.GetFiles(String searchPattern, EnumerationOptions enumerationOptions)
   at System.IO.DirectoryInfo.GetFiles()
   at Microsoft.WingetCreateCLI.Common.CleanUpFilesOlderThan(String cleanUpDirectory, Int32 cleanUpDays)
   at Microsoft.WingetCreateCLI.Program.Main(String[] args)
   at Microsoft.WingetCreateCLI.Program.<Main>(String[] args)

Environment

https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md
@mdanish-kh
Copy link
Contributor

Will be fixed by #452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants