question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please allow direct control over variables that cause arcade to DO something

See original GitHub issue

See: https://github.com/dotnet/arcade/blob/ffc7a871add67b229c7fd41ad1cdff41da926312/src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj#L25

All of these variables: PublishToAzure, PublishToSourceBuildStorage, PublishToSymbolServer will not allow me to configure their value since they always explicitly set a value. It would be really useful if I could just control these values, either by injecting a .props file or by making them conditional.

It’s good to have sensible defaults, but I think this logic is much too smart for its own good. Issues that I’m currently trying to solve:

  1. I need both symbol publishing and BAR publishing, which requires an extra build step because I can’t configure these things directly.
  2. I want to disable symbol publishing for debug builds because I don’t need it for anything. This requires a crazy level of workaround because I can’t configure these things directly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
rynowakcommented, Dec 18, 2018

This I agree with. The hard part is that what is “hostile” to one party is “normal and sane” to another.

Independent of my immediate needs, I also want to make an argument that providing a direct on/off for features rather than trying to infer based on presence of access tokens/feeds/etc is a more straightforward path. This can provide a better experience because rather that trying to infer a feature’s state from the required arguments you can just do what the developer asked for and validate the required arguments.

Providing a direct on/off for features that you expect to be present in ‘official builds’ also integrates nicely with the pipelines templates that arcade provides. Maybe my brain thinks of these things differently than others, but to me it’s a much strong statement of intent to say “I expect to publish to BAR” than to say “I have an access token”.

If I’m debugging why a target didn’t run, and I see:

<Target Name="Foo" Condition="'$(EnableFoo)'=='true'>
</Target>

I can go to the logs and look for EnableFoo without any more steps, I can look in my pipeline definition and see that I’m passing in EnableFoo, etc.

0reactions
ryanbrandenburgcommented, Feb 14, 2019

Mostly, yeah.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Root Cause Analysis - Tracing a Problem to Its Origins
Don't play the blame game!​​ Root cause analysis is a tool that helps you and your team overcome problems, but it shouldn't be...
Read more >
What is the Bullwhip Effect? - Definition from WhatIs.com
The bullwhip effect often occurs when retailers react to demand and amplify expectations around it, causing a domino effect in the supply chain....
Read more >
3.2 Psychologists Use Descriptive, Correlational, and ...
Common-causal variables may cause both the predictor and outcome variable in a correlational design, producing a spurious relationship. The possibility of ...
Read more >
4. Methods Use Instance Variables: How Objects Behave
Chapter 4. Methods Use Instance Variables: How Objects Behave State affects behavior, behavior affects state. We know that objects have state and behavior, ......
Read more >
Make Your First Python Game: Rock, Paper, Scissors!
In this tutorial, you'll learn how to: Code your own rock paper scissors game; Take in user input with input(); Play several games...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found