cake-build / cake-build/cake

Ability to compile without executing script

Open
#2,097 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
C#
Stars
4.2k
Forks
778
Avg merge
1h 15m
Merged PRs (30d)
19

Description

I have a NuGet package that contains a Cake script that is meant to be shared by multiple projects. Unfortunately, there is no way to syntax check the script itself (i.e. during the CI process that creates the package) because the compilation and execution steps are both part of RoslynScriptSession.Execute method (plus obviously there is no command to expose that). I'd love to be able to run Cake in a compile-only mode.

I suppose I could hack it out by including the shared script in another script with a "NoOp" task and execute that task...

Contributor guide

Open the contributing guide

Research direction

Start with the RoslynScriptSession.Execute method mentioned in the issue and trace how Cake combines compilation with execution. Identify the entry point used to run scripts and determine what a compile-only mode would need to expose; done means a shared script can be syntax-checked without running its tasks.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.