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.

Ensure that *only* binder/ subfolder is used if it exists

See original GitHub issue

Right now our buildpack logic can sometimes break. Here’s what’s up:

What we’d like

If a binder/ folder exists in a repo then it will be used in the buildpack process. Currently this is checked by using the binder_path method (link) within each detect call.

Where this goes wrong

If a repository has a binder/ folder with config files in it, but there is a higher-priority config file in the repository root, then that file will take precedence and short-circuit all subsequent config file searching (e.g., having a myproject/binder/requirements.txt file, but also a myproject/Dockerfile).

How we could fix this

Pass a prefix to the “detect” method that’d define a specific folder in which to look for config files. Then just before here we could check whether we need to be searching in a binder/ folder, and if so then pass that to the detect method as a prefix for all subsequent buildpacks.

cc @yuvipanda - if you think that’s a reasonable path forward then I can make a PR

related to #82

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
willingccommented, Mar 20, 2018

It’s cool to leave here. I just want to make sure that a contributor doesn’t try to submit a PR @choldgraf.

0reactions
choldgrafcommented, Mar 20, 2018

yep - only reason that I haven’t closed yet is because I think it’ll be closed by #277 in repo2docker…I think that I was overestimating the scope of work that’d need to be done to fix this. I’m happy to close this now if you prefer, instead of waiting for that PR to land

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ensure that *only* binder/ subfolder is used if it exists #84
If a binder/ folder exists in a repo then it will be used in the buildpack process. Currently this is checked by using...
Read more >
Knowledge Base Solution - "The physical file associated with ...
If the sub-folders for the binders do not exist, make sure the user has sufficient rights to the folder to be able to...
Read more >
Create a Brilliant Substitute Binder With 13 Easy Steps
A sub binder lays the foundation for your classroom in a quick and easy glance for your substitute. Substitute teachers visit multiple ...
Read more >
Azure function blob trigger for subfolders - Microsoft Q&A
I have a container folder where there are many sub-folders(around 3000), a file can land in any of the sub-folders.
Read more >
5747 The ordered SMART or Sub folder does not exist. Or the ...
When ordering a job via Control-M/Enterprise Manager 8.0.00 and 9.0.00, the following message occurs: 5747 The ordered SMART or Sub folder does not...
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