We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a cache for remote providers to minimize network calls to git on ever provider import
Proposal Status: wip
Issue Number: 255
Proposal Doc: remote-providers-cache.md
org
repo
version
file / path?
checksum: str
hooks: list
import (current)
checksums
pyc
using cache
release cache
located in providers dir
based on version of tackle
this would allow version controlling native providers
provider locals
file in each provider that can freeze versions
to create
run command
tackle <target> --freeze
runs a special parser that does not run any hook except tackle / import hooks and catalogues each provider
if file exists
assert that all the providers exist in path
store object in providers either as lazy
latest
latest defaults to true
If version is not given then need to
Check if there are any versioned releases on each get
If there are, then use that one
If not get the default branch and use that
read cache
if it doesn't exist
read checksum of providers from cache
compare with native checksum
For providers:
.tackle.lock.yaml
tackle_version: v0.6.0 # From tackle providers: - type: native version: v0.6.0 # When different from above, not changed - name: a-remote-provider path: org/repo version: v1.0 hooks: - name: a-local-provider type: local path: /home/path/...
Logic:
If type and type == 'native'
path = providers_dir / tackle-{{version}}
for i in path (iter over providers)
tackle_version: v0.6.0 # From tackle provider_dir: providers: - name: collections path: tackle/v0.6.0/collections - name: console path: tackle/v0.6.0/console
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Remote Provider Cache
Create a cache for remote providers to minimize network calls to git on ever provider import
Proposal Status: wip
Issue Number: 255
Proposal Doc: remote-providers-cache.md
Overview
Cache Path
org
repo
version
file / path?
checksum: str
hooks: list
Imports + Change Detection
Local
import (current)
checksums
pyc
using cache
release cache
located in providers dir
based on version of tackle
this would allow version controlling native providers
provider locals
file in each provider that can freeze versions
to create
run command
tackle <target> --freeze
-> looks up version from remote and pins to thatruns a special parser that does not run any hook except tackle / import hooks and catalogues each provider
if file exists
assert that all the providers exist in path
store object in providers either as lazy
Remote
latest
version
Current
latest defaults to true
If version is not given then need to
Check if there are any versioned releases on each get
If there are, then use that one
If not get the default branch and use that
Sequence
read cache
if it doesn't exist
read checksum of providers from cache
compare with native checksum
Cache Schema
For providers:
.tackle.lock.yaml
Logic:
If type and type == 'native'
path = providers_dir / tackle-{{version}}
for i in path (iter over providers)
.tackle.lock.yaml
The text was updated successfully, but these errors were encountered: