Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 22:52
    augustoproiete edited #3714
  • 22:52
    augustoproiete closed #3713
  • 22:52
    augustoproiete edited #3713
  • 07:54
    Build #337 passed
  • 07:46
    Build #336 passed
  • 07:37
    Build #335 passed
  • Nov 25 22:19
    Build #6953 passed
  • Nov 25 22:13
    Build #1126 passed
  • Nov 25 22:13
    Build #2912 passed
  • Nov 25 22:02
    Build #334 passed
  • Nov 25 21:57
    gep13 assigned #3714
  • Nov 25 21:57
    gep13 commented #3715
  • Nov 25 21:56

    gep13 on develop

    (GH-3714) Use Basic.Reference.A… Merge pull request #3715 from d… (compare)

  • Nov 25 21:56
    gep13 closed #3714
  • Nov 25 21:56
    gep13 closed #3715
  • Nov 25 21:51
    gep13 labeled #3714
  • Nov 25 21:51
    gep13 unlabeled #3714
  • Nov 25 20:49
    Build #333 passed
  • Nov 25 18:40
    Build #332 passed
  • Nov 25 13:07
    Build #331 passed
C. Augusto Proiete
@augustoproiete
dotnet cake tools3.cake --verbosity=Diagnostic
Executing: "C:/augustoproiete/cake-tool-1-0-0--rc0002/tools/python.3.8.7/tools/Lib/venv/scripts/nt/python.exe" --version
No pyvenv.cfg file
Works as expected...
image.png
All 3 packages are there on the tools folder:
I can run any 3 cake scripts in any other, and always get the .exe of the correct version
Nils Andresen
@nils-a
@augustoproiete thanks for testing that. In my head I was thinking we're searching for the tool (hence the lexicographic idea). But @devlead had commented on that earlier: We're registering the the contents of the installed package when the #tool directive is used. That registry is queried first.
C. Augusto Proiete
@augustoproiete
@nils-a Right. That's what I had in mind too. Assuming there was a bug, I was expecting the tool to always resolving to 3.10 assuming it was doing a simple string order by in the paths, but that's not the case. Let's see if @aeos can come up with a repro
Darrell
@DTTerastar
I tested my stuff on 1.0rc0001 and rc0002 and the lack of Arguments.GetArgument is a big blocker: Error: System.AggregateException: One or more errors occurred. (Method not found: 'System.String Cake.Core.ICakeArguments.GetArgument(System.String)'.)
---> System.MissingMethodException: Method not found: 'System.String Cake.Core.ICakeArguments.GetArgument(System.String)'.
at Cake.Utils.Prompt.PromptAliases.ArgumentT
at Submission#0.ArgumentT
The fact 0.38 and 0.37 don't have a GetArguments also means I can't use start using that or else my addon will fail on that version.
Would a PR with a GetArgument being a call to GetArguments().SingleOrDefault() be met w/ happiness or disdain? It can be Obsolete from the start.
Darrell
@DTTerastar
nm, moved to github discussion
C. Augusto Proiete
@augustoproiete
Tanner Watson
@tannerwatson
@augustoproiete thank you! (regarding a pip module) and sorry for the late reply. I'll give it a shot over the weekend
norgie
@norgie
bilde.png
Hi.
Has anyone come across this? If so, how did you solve it? If not, any suggestions as to how I can resolve it?
Nils Andresen
@nils-a
@norgie have you seen cake-build/cake#1904 ?
also, are you aware that we're currently moving away from gitter and into https://github.com/cake-build/cake/discussions/ ? ;-)
norgie
@norgie
@nils-a cake#1904 is interesting given that this project is the only one that fails while the other projects who are also using Cake work as expected.
As for moving to cake\discussions on github. Thx for the heads-up.
We've also been using Cake since early days and never encountered this error before.
norgie
@norgie
Adding [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12did indeed solve the issue. Strange that we haven't encountered this before.
Marek Pavlu
@ipavlu
Hi, Cake Modules, I created one, installed it simple way, also through private nuget feed.z
But it seems I have issues with nuget dependencies in the module. Installation installs just package itself, not dependencies which are missing in the nugget package as well
Dmitry Lukyanov
@dmitry_lukyanov_gitlab
Hey, I'm using DotNetCoreTool to create a nuget.config file: DotNetCoreTool(projectPath, "new nugetconfig"), can I somehow configure it? for example, I want to change the content of the created file. I guess I can try to do it with something like DotNetCoreToolSettings.WithProperty, but the constructor of DotNetCoreTool doesn't allow passing this settings
Dmitry Lukyanov
@dmitry_lukyanov_gitlab
Also, is it possible to add a new XML node via XmlPoke. I see here https://cakebuild.net/api/Cake.Common.Xml/XmlPokeAliases/A9DB73CD updating and removing. Attempts to make the same steps for "adding" were with no luck
Dmitry Lukyanov
@dmitry_lukyanov_gitlab
3 (last one :) ). If I need to call dotnet add package .. for my c# project, what is the best way to do it? It seems that NuGetAdd and NuGetInstall make different things
Marek Pavlu
@ipavlu
Installing module puts dependencies to module specific folder, from nuget feed module installs dependencies into Modules\ModuleName.Version\ModuleName
and dependencies go to Modules\ModuleName.Version\dependency_a, Modules\ModuleName.Version\dependency_b, Modules\ModuleName.Version\dependency_c
This happens during bootstrap.
build.ps1 fails, as it is unable to understand dependencies in way they are stored in module folder.
cake-contrib-bot
@cake-contrib-bot
@/all Version 0.2.0 of the Cake-Rider plugin has just been released, this will be available here https://plugins.jetbrains.com/plugin/15729-cake-rider, once the version is revied and approved.
Toby Henderson
@holytshirt
Evening all, I can't seem to find the documentation an alias for which operating system is the script running on
want to a an
if windows do x if mac do y
Pascal Berger
@pascalberger
@holytshirt See the Platform aliases
Toby Henderson
@holytshirt
@pascalberger argh thank you, perfect, google fu failed me
Pascal Berger
@pascalberger

@/all A quick reminder that we suggest to use GitHub discussions as prefered communication channel. GitHub discussions makes it easier to keep track of discussions in a structured way, especially if multiple discussions are happening at the same time. It also allows to search for previous discussion, which can be a helpful resource. GitHub discussions should be a place for the community like here, and we would be more than happy if community would chime in to discussions over there.

We won't delete this channel, but discussions might move to the new place which is available at: https://github.com/cake-build/cake/discussions

C. Augusto Proiete
@augustoproiete

@/all We are starting to prepare our next release, 1.0.0-rc0003 (https://github.com/cake-build/cake/milestone/75?closed=1) :rocket::cake:.

This is your friendly reminder that if you haven't pinned to a specific version of Cake, you should do it now 😉 https://cakebuild.net/docs/writing-builds/reproducible-builds

cake-contrib-bot
@cake-contrib-bot
@/all Version 1.0.0-rc0003 of the Cake has just been released, https://www.nuget.org/packages/Cake.
C. Augusto Proiete
@augustoproiete
@/all Cake v1.0.0-rc0003 has been released :rocket: :cake: See details in this blog post: https://cakebuild.net/blog/2021/01/cake-v1.0.0-rc0003-released
Mattias Karlsson
@devlead
@/all We will soon start preparing for the 1.0.0 release of Cake. So this is a friendly reminder to pin your Cake version.
it's happening
cake-contrib-bot
@cake-contrib-bot
@/all Version 1.0.0 of the Cake has just been released, https://www.nuget.org/packages/Cake.
Mattias Karlsson
@devlead
Tanner Watson
@tannerwatson
:happy dance:
bravecobra
@bravecobra
Hi, is Cake.Services broken?
I can't seem to use the #addin
Pascal Berger
@pascalberger
@bravecobra You best chance to get an answer is probably if you open an issue in the repository of that extension (https://github.com/SharpeRAD/Cake.Services) and provide detailed information about what version of Cake, platform & operating system you use, what does not work, what messages you get
Nicolai Brogaard
@nmbro
image.png
3 replies
markofranjic
@markofranjic

Hi is there any way to get a collection of arguments but in this way?
--NugetSourceName=Test1, --NugetSourceName=Test2

public class BuildContext : FrostingContext
{
   public string Solution { get; }
   public ICollection<NugetSource> NugetSource { get; }

   public BuildContext(ICakeContext context): base(context)
   {

   }

}

public class NugetSource
{
   public string Name { get; }

   public NugetSource(ICakeContext context)
   {
    Name = context.Arguments.GetArgument("NugetSourceName")
   }
}

I don't want this

public class NugetSource
{
   public ICollection<string> Name { get; }

   public NugetSource(ICakeContext context)
   {
    Name = context.Arguments.GetArguments("NugetSourceName")
   }
}
Gary Ewan Park
@gep13
@markofranjic can I ask that you move this question over to the discussions area: https://github.com/cake-build/cake/discussions I think it will be best answered over there. Thanks
Matthew Leibowitz
@mattleibow
Hey folks, just checking if this is a bug or a feature: cake-build/cake#3197
Basically, this no longer works dotnet cake --prefix=""
dotnet cake --names=""

Error: Expected an option value.

       --names=
               ^ Did you forget the option value?
Nils Andresen
@nils-a
@mattleibow That's a feature of Cake 1.0.0 , see https://cakebuild.net/docs/getting-started/upgrade#passing-empty-arguments
Matthew Leibowitz
@mattleibow
huh. thanks