diff --git a/devcontainer/setup-devcontainer.sh b/devcontainer/setup-devcontainer.sh index e20ede6..b8f1188 100755 --- a/devcontainer/setup-devcontainer.sh +++ b/devcontainer/setup-devcontainer.sh @@ -28,7 +28,7 @@ if [ "$(ls -A $WORKSPACE_DIR)" ]; then fi fi -TMP_DIR="$WORKSPACE_DIR/tmp-everest-dev-environment" +TMP_DIR=$(mktemp --directory) echo "Clone the everest-dev-environment repository to the workspace directory with the version $VERSION, temporarily.." git clone --quiet --depth 1 --single-branch --branch "$VERSION" https://github.com/EVerest/everest-dev-environment.git "$TMP_DIR" diff --git a/everest_dev_tool/pyproject.toml b/everest_dev_tool/pyproject.toml index 4a80589..a5f5ced 100644 --- a/everest_dev_tool/pyproject.toml +++ b/everest_dev_tool/pyproject.toml @@ -1,8 +1,8 @@ [project] name = "everest_dev_tool" version = "0.0.1" -description = "This tool provides helpfull commands to setup/control your dev environment" -license = { text="MIT" } +description = "This tool provides helpful commands to setup/control your dev environment" +license = { text="Apache-2.0" } dependencies = [] [project.scripts] diff --git a/everest_dev_tool/src/everest_dev_tool/git_handlers.py b/everest_dev_tool/src/everest_dev_tool/git_handlers.py index dda87d9..734231a 100644 --- a/everest_dev_tool/src/everest_dev_tool/git_handlers.py +++ b/everest_dev_tool/src/everest_dev_tool/git_handlers.py @@ -8,9 +8,9 @@ def clone_handler(args: argparse.Namespace, log: logging.Logger = default_logger log.debug("Running clone handler") if args.https: - repository_url = f"https://github.com/" + repository_url = "https://github.com/" else: - repository_url = f"git@github.com:" + repository_url = "git@github.com:" repository_url = repository_url + f"{ args.organization }/{ args.repository_name }.git" subprocess.run(["git", "clone", "-b", args.branch, repository_url], check=True)