dropseed / deps-git Goto Github PK
View Code? Open in Web Editor NEWDeps component for updating git dependencies
Home Page: https://docs.dependencies.io/git/
License: MIT License
Deps component for updating git dependencies
Home Page: https://docs.dependencies.io/git/
License: MIT License
Currently deps fails on the m1/m2 macs when developers are running locally with git dependencies being checked.
deps -v upgrade
> Using component from https://github.com/dropseed/deps-git
> Storing component in /Users/<username>/Library/Caches/deps/components/deps-git
> git pull
Already up to date.
> Skipping install of /Users/<username>/Library/Caches/deps/components/deps-git
> Collecting with /Users/<username>/Library/Caches/deps/components/deps-git...
> Input path: .
> $DEPS_COMPONENT_PATH/bin/deps-git --collect . /var/folders/<key>/deps-958642410
sh: /Users/<username>/Library/Caches/deps/components/deps-git/bin/deps-git: No such file or directory
exit status 127
Any plans for releasing an arm64 version for this component?
Given the following example:
version: 3
dependencies:
- type: git
settings:
remotes:
https://github.com/minio/mc.git:
replace_in_files:
- filename: charts/minio/values.yaml
pattern: 'tag: "(\S+)"'
semver: false
I see the following output, which is trying to replace the tag with the very first tag in the repo:
> Collecting with deps-git
> 1 new updates to be made
> [b2f436a] Update minio/mc from RELEASE.2018-07-13T00-53-22Z to RELEASE.Wed-Jun-24-21-56-09-GMT-2015
There appears to be some sorting still going on. And changing the pattern to be more specific doesn't seem to change the result at all?
tag_prefix: 'RELEASE.'
pattern: 'tag: "RELEASE.(\d\d\d\d-\d\d-\d\dT\d\d-\d\d-\d\dZ)"'
The install script in https://github.com/dropseed/deps-git/blob/master/deps_component.yml is still installing 0.1.1
which doesn't have support for range
config.
If you use a pattern that doesn't match anything in the file, you get an unclear error .
panic: runtime error: index out of range
goroutine 1 [running]:
main.collect(0x7ffea4e3bd4a, 0x1, 0x7ffea4e3bd4c, 0x13, 0x7)
/home/travis/gopath/src/github.com/dropseed/deps-git/collect.go:28 +0x883
main.main()
/home/travis/gopath/src/github.com/dropseed/deps-git/main.go:24 +0x20a
Line 28 in 87a51bd
The semver parsing is strict, and tags that are almost semver can be out of order.
Examples:
curl-7_59_0
- https://github.com/curl/curlrelease-57-1
- https://github.com/unicode-org/icuOpenSSL_1_0_2o
- https://github.com/openssl/openssl.gitWe want to be able to sort these kinds of tags in their semver order.
This settings API is evolving a little bit... here is one idea for how we could give some control over how tags are sorted and what string you actually end up using when doing the replacement in a file:
https://github.com/curl/curl.git:
replace_in_files:
- filename: file.txt
pattern: curl==(\S+)
tag_filter:
from: 'curl-(\d+)_(\d+)_(\d+)'
to: '$1' # the original full tag name
sort_as: '$2.$3.$4' # this format will only be used for sorting (semver)
semver:
enabled: true
range: '< 8.0.0'
prereleases: false
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.