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

Attribute [IsDependeeOf] doesn't work #3072

Closed
VSerykh opened this issue Feb 2, 2021 · 3 comments · Fixed by #3071
Closed

Attribute [IsDependeeOf] doesn't work #3072

VSerykh opened this issue Feb 2, 2021 · 3 comments · Fixed by #3071
Labels
Milestone

Comments

@VSerykh
Copy link
Contributor

VSerykh commented Feb 2, 2021

What You Are Seeing?

When I create a FrostingTask with [IsDependeeOf()], it doesn't work.

The error message is:

Error: Task 'World' has specified that it's a dependency for task 'IsDependeeOfAttribute' which does not exist.

What is Expected?

It's expected not to fail and run a task with a reversed dependency.

What version of Cake are you using?

Probably v1.0.0-rc0003.

I tested the latest code from release/1.0.0.

Are you running on a 32- or 64-bit system?

64-bit

What environment are you running on? Windows? Linux? Mac?

Windows 10

Are you running on a CI Server? If so, which one?

No.

How Did You Get This To Happen? (Steps to Reproduce)

Simply put valid [IsDependeeOf()] on any task.

Output Log

NuGet Config not specified. Will use NuGet default mechanism for resolving it.
Registering task: Hello
Registering task: World
Registering task: Default
Error: Cake.Core.CakeException: Task 'World' has specified that it's a dependency for task 'IsDependeeOfAttribute' which does not exist.
   at Cake.Core.Graph.CakeGraphBuilder.Build(IReadOnlyCollection`1 tasks)
   at Cake.Core.CakeEngine.<RunTargetAsync>d__27.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
   at Cake.Cli.BuildScriptHost`1.<RunTargetAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Cake.Core.Scripting.ScriptHost.RunTarget(String target)
   at Cake.Frosting.Internal.FrostingEngine`1.Run(String target)
   at Cake.Frosting.Internal.DefaultCommand.Execute(CommandContext context, DefaultCommandSettings settings)
@patriksvensson
Copy link
Member

@VSerykh Could you post the whole build pipeline here as well?

@pascalberger pascalberger linked a pull request Feb 2, 2021 that will close this issue
@pascalberger
Copy link
Member

Fixed with #3071

@cake-build-bot
Copy link

🎉 This issue has been resolved in version v1.0.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

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

Successfully merging a pull request may close this issue.

4 participants