willabides / bindown Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hey @WillAbides
in https://github.com/WillAbides/bindown-templates/blob/main/bindown.yml the properties and the sources of the remote binary are conflated together .
maybe a registry is needed at a global level per machine ? Then things are DRY and extensible without getting too crazy . There is a balance.
The global registry can be a git server.
I am using nats Jetstream to keep all global and remote registries up to date so we could use that with bindown if your up for it. I could also write it as a plugin off otherwise.
It would mean that a binary or a registry value would be streamed to all laptops or servers instantly . So then as a user you know of it’s existence without the pull / push cycles. It’s all real time .
When bin/foo
is a broken symlink, bindown install foo
errors with:
bindown: error: symlink /path/to/bin/foo: file exists
any thoughts on the ability to declare the bins you need on a project and then have a way for the bins to be pulled as requested.
https://github.com/aquaproj/aqua is a similar project and it has the concept of a proxy. When you make a call to a bin, it will pull it down and then let the call pass through to execute that bin. here it is: https://github.com/aquaproj/aqua-proxy
Improve bindown init
to:
Add cache
and install_dir
to .bindown.yaml
if they are set to non-default.
Add cache
and install_dir
directories to .gitignore
.
Need to add an --install-dir
param to init. It can use the global --cache
option param for setting the cache dir. It
also needs a --no-gitignore
param to prevent it.
The .gitignore
file should be in the same directory as .bindown.yaml
even if it is in a subdirectory of the git
repo.
The algorithm for .gitignore
should be something like:
git
isn't available in PATH, abort.bindown.yaml
isn't being created inside a git repo, abortcache
and install_dir
git check-ignore
to see if the directory is already ignored. If so continue to next directory..gitignore
in the same directory as .bindown.yaml
Make it simpler to handle micro-architectures so that the same dependency can target multiple microarchitectures for the same arch. For instance both binname-linux-armv5
and binname-linux-armv6
.
Currently a system is "os/arch". I think we will need to expand this to "os/arch[/microarch]" with unspecified microarch defaulting to go's default when unspecified. So linux/arm/v5
will download binname-linux-armv5
while both linux/arm
and linux/arm/v6
will download binname-linux-armv6
.
Go defines microarchitecture with different variables depending on the GOARCH. Those vars are currently:
var | arches | values | default |
---|---|---|---|
GO386 | 386 | softfloat, sse2 | sse2 |
GOARM | arm | 5, 6, 7 | 6 |
GOAMD64 | amd64 | v1, v2, v3, v4 | v1 |
GOMIPS | mips, mipsle | hardfloat, softfloat | hardfloat |
GOPPC64 | ppc64 | power8, power9 | power8 |
Because no arch has more than one var, we may be able to have one template var for all archs. Something like {{ .microArch }}
. We should also populate {{ .go386 }}
, {{ .goarm }}
, etc.
This assumes there will never by a single GOARCH that can have multiple microarchs. I think that's a safe assumption. If this changes, we may need to make a breaking change.
add-by-*
No more details...just need to remember to consider dependency add-by-urls
and dependency add-by-github-release
.
Anyone tried this on windows ? just wondering if it works there too.
Starting in v4.8.0, the "bin" config is ignored when installing.
bindown needs a way to determine which bindown versions a config file will work with.
This will come up in #161 because adding {{ .microArch }}
to a template will cause earlier bindown versions to error.
This won't be a big deal for individual repositories because you can simply not add features before you start using a version of bindown that handles them. However template repositories like https://github.com/WillAbides/bindown-templates should be able to signal that they don't support older versions of bindown.
bindown_version
Add something like bindown_version: '>= 4.3.0'
to the config and fail with a message to upgrade when reading a config file from a version of bindown that doesn't meet the constraint.
I think this will work for non-breaking changes like #161 where new functionality is added, but this doesn't work when something is removed.
It would also be difficult to figure out what value to use for bindown_version
when writing a config file.
config_version
Similar to api_version
but it's about config files instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.