Comments (6)
The import
feature in bender requires a mapping to be defined to include parts of the upstream repository into your project. The repository is cloned into a temporary location, and the needed files are copied over afterwards, so it makes sense that you cannot find the repository.
Try adding the --refetch
flag to the bender import
command, as this will trigger the proper update of your files. Otherwise bender will attempt to print a diff between the files included in your repository and those in the upstream, and here it cannot find the needed directory.
If this fixes the issue, I will update the documentation, errors, and code to provide a bit better user experience for this feature.
from bender.
Thanks @micprog,
Adding the --refetch
flag did the trick. When I run bender import
without the --refetch
it throws the error below;
error: Cannot startup runtime. No such file or directory (os error 2)
But, when I use --refetch
for the same Bender.yml
file, it works perfectly.
from bender.
Follow up question, Is there an easy way to get all the files in that repo without listing all of the files in the mapping
? I tried using *
like below, but unfortunately, it didn't work.
mapping:
- {from: '*', to: '*' }
from bender.
You can link directories, so you could try and give '.'
a shot, but I haven't tested that yet. It might make sense to by default clone the full repository if no mapping is provided, but that is not implemented yet.
from bender.
It might make sense to by default clone the full repository if no mapping is provided
I agree.
I tested '.'
, folder_layer1
and folder_layer1/folder_layer2/last_folder
cases and only the last one is working. i.e. it cannot link recursively. Maybe, linking recursively can be another feature that may be added in the future releases.
Thanks again
from bender.
Found it. If I do it like below, it works. But, it still throws an error and looks like skips the .txt
files. Interesting.
mapping:
- {from: '', to: '' }
error: Cannot startup runtime. No such file or directory (os error 2)
from bender.
Related Issues (20)
- Bug: Bender sources may start with `false` HOT 2
- Rerunning the same bender command twice produces different results HOT 7
- Defines and Includes in flist
- Checkout path dependency in git dependency HOT 1
- How to create a package? HOT 2
- Bender vendor support for upstream versions HOT 3
- Issue warning when file to include from upstream is not found HOT 1
- `bender vendor diff` does not display untracked files HOT 5
- vendor_package files are not added as source HOT 1
- Bender not updating git dependencies that have already been cloned HOT 1
- Possibility to release a build for macOS? HOT 2
- `plugins:` will be deprecated? HOT 3
- using environment variables in path dependencies HOT 2
- Citing bender
- Bug in `release.yaml`
- Bender ignores version tags HOT 2
- Package with only include_dirs doesn't work HOT 4
- Defines assumed to be string values, not numerical values
- VCS compile script doesn't propagate errors
- package filtering may fail HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bender.