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.

.ci_support doesn't add custom channels or custom target

See original GitHub issue

if you add custom targets or channels to conda-forge.yaml file as such:

channels:
  sources:
    - mychannel
    - conda-forge
    - defaults
  targets:
    - [mychannel, main]

github:
  user_or_org: 'myorg'
  branch_name: 'mine'

They don’t seem to get passed onto the files in .ci_support/linux_.yaml.

I mostly tracked it down to:

def dump_subspace_config_files(metas, root_path, platform)

and

def _collapse_subpackage_variants(list_of_metas):

Which doesn’t seem to take as input forge_config which parses the conda-forge.yaml file and updates the default values.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
hmaarrfkcommented, Nov 16, 2018

The following patch seems to make things work for me.

diff --git a/conda_smithy/configure_feedstock.py b/conda_smithy/configure_feedstock.py
index 438ed7d..9fa516b 100755
--- a/conda_smithy/configure_feedstock.py
+++ b/conda_smithy/configure_feedstock.py
@@ -298,6 +298,12 @@ def _collapse_subpackage_variants(list_of_metas):
     _trim_unused_zip_keys(used_key_values)
     _trim_unused_pin_run_as_build(used_key_values)
 
+    # EDIT: TODO
+    # Update the config with any items that are overwritten in the forge config
+    for k, v in forge_config.items():
+        if k in used_key_values:
+            used_key_values[k] = v
+
     return break_up_top_level_values(top_level_loop_vars, used_key_values), top_level_loop_vars

If such a feature is welcome, I’ll try to write up some tests for it.

1reaction
mjscostacommented, Nov 16, 2018

Hi @hmaarrfk ,

I might just bumped into that issue …

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add a Custom Chat Channel to Twilio Flex
Step-by-step instructions to integrate a custom web chat channel into Flex using Node.js and the Twilio REST API and CLI.
Read more >
Configure custom channel, or bring your own channel
In the site map, select the workstream that you've created for the custom channel, and on the page that appears, select Set up...
Read more >
cmake - add_custom_command is not generating a target
Once you got that, you can create a custom post-build command which is only executed when you explicitly run make on your deploy...
Read more >
1.2. Creating and Managing Custom Channels
Custom Channels - These channels are created by the organizational administrator to manage custom packages. These channels, also known as private channels, by ......
Read more >
Designing Customer Communication Across Any Channel
... channel, like email, SMS, voice, push, or even newer “ custom ” ... through channels like social *Learn how to create custom...
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