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

Any updates ? #39

Closed
bufferUnderrun opened this issue Dec 19, 2021 · 11 comments
Closed

Any updates ? #39

bufferUnderrun opened this issue Dec 19, 2021 · 11 comments

Comments

@bufferUnderrun
Copy link

Hi,

I was looking for a C# build automation tool :

  • Cake : interesting but limited to a defined subset of C# provided by API ref.
  • Nuke : does not support scripting, not what i wante.

Then i discovered Nake, and it fits all my needs :

  • base on script (csx file)
  • support C# and many cool feature (nuget...)

But 18 month since the last commit, app is in beta 2 and does not run in .NET5.
So what's problem : lack of contributors or app contains to many bugs ?

Thanks

@yevhen
Copy link
Owner

yevhen commented Dec 20, 2021

Lack of time, I believe) What things do you need the most?

@yevhen
Copy link
Owner

yevhen commented Dec 20, 2021

From known bugs this is a must-have to fix

@bufferUnderrun
Copy link
Author

.NET5 or .NET6 compatibility would be great !

@yevhen
Copy link
Owner

yevhen commented Dec 28, 2021

Ok. I’ll push update for net6

@bufferUnderrun
Copy link
Author

I just see a 3.0.0-RC3 targeting NET6.
I will test it.

Thanks !!

@yevhen
Copy link
Owner

yevhen commented Jan 27, 2022

Let me know how it goes) I plan to add ability to specify framework version as cli parameter and fix the bug with caching multi-file scrips before the final release. That’s why RC status for now

@bufferUnderrun
Copy link
Author

bufferUnderrun commented Feb 1, 2022

Could support both NET5/NET6 ?

I test from a mcr.microsoft.com/dotnet/sdk:6.0-alpine docker image, exception when installing

# dotnet tool install Nake --version 3.0.0-RC3
Microsoft.DotNet.ToolPackage.ToolConfigurationException: Failed to retrieve tool configuration: Could not find a part of the path '/root/.nuget/packages/nake/3.0.0-RC3/tools/net6.0/any/DotnetToolSettings.xml'.
 ---> System.IO.DirectoryNotFoundException: Could not find a part of the path '/root/.nuget/packages/nake/3.0.0-RC3/tools/net6.0/any/DotnetToolSettings.xml'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at Microsoft.DotNet.ToolPackage.ToolConfigurationDeserializer.Deserialize(String pathToXml)
   --- End of inner exception stack trace ---
   at Microsoft.DotNet.ToolPackage.ToolConfigurationDeserializer.Deserialize(String pathToXml)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstance.DeserializeToolConfiguration(LockFileTargetLibrary library)
   at Microsoft.DotNet.ToolPackage.ToolPackageInstance.GetToolConfiguration()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.get_Value()
   at Microsoft.DotNet.ToolPackage.ToolPackageInstance.GetCommands()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.get_Value()
   at Microsoft.DotNet.ToolPackage.ToolPackageInstance.get_Commands()
   at Microsoft.DotNet.Tools.Tool.Install.ToolInstallLocalCommand.Install(FilePath manifestFile)
   at Microsoft.DotNet.Tools.Tool.Install.ToolInstallLocalCommand.Execute()
   at Microsoft.DotNet.Tools.Tool.Install.ToolInstallCommand.Execute()
   at Microsoft.DotNet.Cli.DotNetTopLevelCommandBase.RunCommand(String[] args)
   at Microsoft.DotNet.Tools.Tool.ToolCommand.Run(String[] args)
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
   at Microsoft.DotNet.Cli.Program.Main(String[] args)

i do something wrong ?

@yevhen
Copy link
Owner

yevhen commented Feb 2, 2022

Hmmm. Have no idea what is going on here. I’ll get back to you little bit later

@yevhen
Copy link
Owner

yevhen commented Feb 19, 2022

Pushed RC2 with that file included in a package.

@yevhen
Copy link
Owner

yevhen commented Feb 20, 2022

@bufferUnderrun try 3.0.0 release. The problem was due to the dash in release name 🤦‍♂️

@bufferUnderrun
Copy link
Author

@yevhen Sorry for long time since my last comment.

I've done some tests and everything seems to work, even inside my docker container.

Will convert my old CI/CD Cake script to the Nake syntax.

Thanks for your help !

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