git-goose 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_goose-0.3.1 → git_goose-0.3.2}/PKG-INFO +2 -2
- {git_goose-0.3.1 → git_goose-0.3.2}/README.md +1 -1
- {git_goose-0.3.1 → git_goose-0.3.2}/src/git_goose.egg-info/PKG-INFO +2 -2
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/_version.py +2 -2
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/paths.py +10 -3
- {git_goose-0.3.1 → git_goose-0.3.2}/.dockerignore +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.editorconfig +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.github/dependabot.yml +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.github/workflows/ci.yaml +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.github/workflows/release.yaml +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.gitignore +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.goose/node/manifest.json +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.goose/node/package-lock.json +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.goose/node/package.json +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.goose/python/manifest.json +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.goose/python/requirements.txt +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.goose/type-check/manifest.json +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/.goose/type-check/requirements.txt +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/Dockerfile +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/LICENSE +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/Makefile +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/goose.yaml +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/pyproject.toml +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/requirements.txt +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/ruff.toml +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/setup.cfg +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/git_goose.egg-info/SOURCES.txt +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/git_goose.egg-info/dependency_links.txt +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/git_goose.egg-info/requires.txt +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/git_goose.egg-info/top_level.txt +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/__init__.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/__main__.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/_utils/__init__.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/_utils/pydantic.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/asyncio.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/backend/__init__.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/backend/base.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/backend/index.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/backend/node.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/backend/python.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/config.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/context.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/environment.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/executable_unit.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/filter.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/git/__init__.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/git/shared.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/git/status.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/manifest.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/orphan_environments.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/parallel.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/process.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/py.typed +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/scheduler.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/src/goose/targets.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/tests/__init__.py +0 -0
- {git_goose-0.3.1 → git_goose-0.3.2}/tests/test_targets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: git-goose
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A picky and eager Git hook runner.
|
|
5
5
|
Author-email: Anton Agestam <git@antonagestam.se>
|
|
6
6
|
License: BSD 3-Clause
|
|
@@ -44,7 +44,7 @@ Requires-Dist: shellingham
|
|
|
44
44
|
#### Docker alias
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
alias goose='docker run --rm -it -v ${PWD}:/wd -v ~/.cache/goose-docker:/home/nonroot/.cache ghcr.io/antonagestam/goose:latest'
|
|
47
|
+
alias goose='docker run --rm -it -v ${PWD}:/wd -v ~/.cache/goose-docker:/home/nonroot/.cache -e "GOOSE_AUGMENTED_CWD=${PWD}" ghcr.io/antonagestam/goose:latest'
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
#### Via PyPI
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
#### Docker alias
|
|
22
22
|
|
|
23
23
|
```sh
|
|
24
|
-
alias goose='docker run --rm -it -v ${PWD}:/wd -v ~/.cache/goose-docker:/home/nonroot/.cache ghcr.io/antonagestam/goose:latest'
|
|
24
|
+
alias goose='docker run --rm -it -v ${PWD}:/wd -v ~/.cache/goose-docker:/home/nonroot/.cache -e "GOOSE_AUGMENTED_CWD=${PWD}" ghcr.io/antonagestam/goose:latest'
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
#### Via PyPI
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: git-goose
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A picky and eager Git hook runner.
|
|
5
5
|
Author-email: Anton Agestam <git@antonagestam.se>
|
|
6
6
|
License: BSD 3-Clause
|
|
@@ -44,7 +44,7 @@ Requires-Dist: shellingham
|
|
|
44
44
|
#### Docker alias
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
alias goose='docker run --rm -it -v ${PWD}:/wd -v ~/.cache/goose-docker:/home/nonroot/.cache ghcr.io/antonagestam/goose:latest'
|
|
47
|
+
alias goose='docker run --rm -it -v ${PWD}:/wd -v ~/.cache/goose-docker:/home/nonroot/.cache -e "GOOSE_AUGMENTED_CWD=${PWD}" ghcr.io/antonagestam/goose:latest'
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
#### Via PyPI
|
|
@@ -13,10 +13,17 @@ def _get_base_envs_path() -> Path:
|
|
|
13
13
|
return _get_cache_home() / "goose"
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
def _get_working_directory_hash() -> str:
|
|
17
|
+
if (virtual_cwd := os.environ.get("GOOSE_AUGMENTED_CWD", None)) is not None:
|
|
18
|
+
cwd = virtual_cwd.encode()
|
|
19
|
+
else:
|
|
20
|
+
cwd = bytes(Path(os.getcwd()).resolve())
|
|
21
|
+
return hashlib.sha256(cwd).hexdigest()
|
|
22
|
+
|
|
23
|
+
|
|
16
24
|
def get_env_path() -> Path:
|
|
17
25
|
base_path = _get_base_envs_path()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
env_path = base_path / env_hash.hexdigest()
|
|
26
|
+
cwd_hash = _get_working_directory_hash()
|
|
27
|
+
env_path = base_path / cwd_hash
|
|
21
28
|
env_path.mkdir(exist_ok=True, parents=True)
|
|
22
29
|
return env_path
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|