Skip to content

Commit

Permalink
fixing bug that writing package file defaults to None (#582)
Browse files Browse the repository at this point in the history
* fixing bug that writing package file defaults to None
* undo changed registry path
Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch authored Aug 27, 2022
1 parent ce1452d commit 5c05922
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/singularityhub/singularity-hpc/tree/main) (0.0.x)
- Fixing bug with writing package file in update (0.1.1)
- Add support for remote registry and sync commands --all (0.1.0)
- support for GitLab and GitHub remotes
- fixing bug to config set/get nested fields, default for wrapper scripts true (0.0.57)
Expand Down
1 change: 1 addition & 0 deletions shpc/main/registry/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def save(self, package_file):
"""
Save the new package file to container.yaml
"""
package_file = package_file or self.package_file
shpc.utils.write_yaml(self._config, package_file)

def load_wrapper_script(self, container_tech, script):
Expand Down
2 changes: 1 addition & 1 deletion shpc/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ container_features:
# defaults to ~/.Xauthority if set to true and the container has x11: true
home: # one of null, or a single path or src:dest path.
# home: true in a container.yaml will use this path, if defines
updated_at: '2022-08-20T16:40:24Z'
updated_at: '2022-08-26T20:38:06Z'
4 changes: 2 additions & 2 deletions shpc/tests/test_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def test_get_local_template_paths(tmp_path, with_custom_wrapper_template_path):
registry.FilesystemResult("quay.io/vgteam/vg", container_yaml)
)
ws = wrappers_base.WrapperScript(
"dummy.sh", # Not used in this test
"dummy.sh",
client.settings,
config=config,
image=None,
image=None, # Not used in this test
)
client.settings.set(
"wrapper_scripts",
Expand Down
2 changes: 1 addition & 1 deletion shpc/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__copyright__ = "Copyright 2021-2022, Vanessa Sochat"
__license__ = "MPL 2.0"

__version__ = "0.1.0"
__version__ = "0.1.1"
AUTHOR = "Vanessa Sochat"
NAME = "singularity-hpc"
PACKAGE_URL = "https://github.com/singularityhub/singularity-hpc"
Expand Down

0 comments on commit 5c05922

Please sign in to comment.