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

Support for amzn.2-x64? #629

Closed
benmccallum opened this issue Jul 7, 2021 · 4 comments
Closed

Support for amzn.2-x64? #629

benmccallum opened this issue Jul 7, 2021 · 4 comments

Comments

@benmccallum
Copy link

Currently getting a plat not supported exception, so just asking the question.

If it's not supported due to necessary deps or whatever totally understood. Thanks!

@benmccallum
Copy link
Author

Sorry I did a bit more reading and it seems like upgrading to https://github.com/dotnet/Nerdbank.GitVersioning/releases/tag/v3.4.190 might do the trick.

@benmccallum
Copy link
Author

benmccallum commented Jul 7, 2021

Interesting, now I'm getting System.IO.IOException: Not enough storage is available to process this command..

Any ideas @AArnott ?

To clarify, my linux builds now work, but this is happening now on a different Windows build :(

[03:45:01][src\AutoGuru.Shared.Cloud\src\AutoGuru.Shared.Cloud.csproj] GetBuildVersion
[03:45:01][GetBuildVersion] MSBuild
[03:45:01][MSBuild] Nerdbank.GitVersioning.Inner.targets: Build target: GetBuildVersion_Properties
[03:45:01][Nerdbank.GitVersioning.Inner.targets] GetBuildVersionCore
[03:45:01][GetBuildVersionCore] Nerdbank.GitVersioning.Tasks.GetBuildVersion
[03:45:01][Nerdbank.GitVersioning.Tasks.GetBuildVersion] C:\Users\Administrator\.nuget\packages\nerdbank.gitversioning\3.4.220\build\Nerdbank.GitVersioning.Inner.targets(17, 5): error MSB4018: The "Nerdbank.GitVersioning.Tasks.GetBuildVersion" task failed unexpectedly.
System.IO.IOException: Not enough storage is available to process this command.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.MemoryMappedFiles.MemoryMappedView.CreateView(SafeMemoryMappedFileHandle memMappedFileHandle, MemoryMappedFileAccess access, Int64 offset, Int64 size)
   at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateViewAccessor(Int64 offset, Int64 size, MemoryMappedFileAccess access)
   at Nerdbank.GitVersioning.ManagedGit.GitPack..ctor(GetObjectFromRepositoryDelegate getObjectFromRepositoryDelegate, Lazy`1 indexStream, Func`1 packStream, GitPackCache cache)
   at Nerdbank.GitVersioning.ManagedGit.GitPack..ctor(GetObjectFromRepositoryDelegate getObjectFromRepositoryDelegate, String indexPath, String packPath, GitPackCache cache)
   at Nerdbank.GitVersioning.ManagedGit.GitRepository.LoadPacks()
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at System.Lazy`1.get_Value()
   at Nerdbank.GitVersioning.ManagedGit.GitRepository.TryGetObjectBySha(GitObjectId sha, String objectType, Stream& value)
   at Nerdbank.GitVersioning.ManagedGit.GitRepository.TryGetObjectBySha(GitObjectId sha, String objectType, Stream& value)
   at Nerdbank.GitVersioning.ManagedGit.GitRepository.GetObjectBySha(GitObjectId sha, String objectType)
   at Nerdbank.GitVersioning.ManagedGit.GitRepository.GetCommit(GitObjectId sha, Boolean readAuthor)
   at Nerdbank.GitVersioning.ManagedGit.GitRepository.GetHeadCommit(Boolean readAuthor)
   at Nerdbank.GitVersioning.Managed.ManagedGitContext..ctor(String workingDirectory, String dotGitPath, String committish)
   at Nerdbank.GitVersioning.GitContext.Create(String path, String committish, Boolean writable)
   at Nerdbank.GitVersioning.Tasks.GetBuildVersion.ExecuteInner()
   at MSBuildExtensionTask.ContextAwareTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

@benmccallum
Copy link
Author

Dropping down to v3.4.190 exactly seemed to resolve it so it must be a new regression. Let me know if you want me to file it as a new issue @AArnott

@AArnott
Copy link
Collaborator

AArnott commented Jul 9, 2021

Is your Windows agent invoking 32-bit or 64-bit MSBuild? I bet it's 32-bit, which would likely make it a dupe of #584.

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

No branches or pull requests

2 participants