Skip to content

Commit

Permalink
Merge branch 'main' into lporoli/ticket-1585
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli authored Oct 23, 2023
2 parents e531e1a + be1e51e commit cc2ca66
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 29 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.84.10](https://github.com/kurtosis-tech/kurtosis/compare/0.84.9...0.84.10) (2023-10-23)


### Bug Fixes

* bug in portal forwarding via run ([#1598](https://github.com/kurtosis-tech/kurtosis/issues/1598)) ([bf534c3](https://github.com/kurtosis-tech/kurtosis/commit/bf534c35055f4ec3e19cc1f1e2e32e8d29e61b5a))

## [0.84.9](https://github.com/kurtosis-tech/kurtosis/compare/0.84.8...0.84.9) (2023-10-19)


Expand Down
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Business Source License 1.1
Parameters

Licensor: Kurtosis Technologies, Inc.
Licensed Work: Kurtosis 0.84.9
Licensed Work: Kurtosis 0.84.10
The Licensed Work is (c) 2023 Kurtosis Technologies, Inc.
Additional Use Grant: You may make use of the Licensed Work, provided that
you may not use the Licensed Work for an Environment Orchestration Service.
Expand All @@ -12,7 +12,7 @@ you may not use the Licensed Work for an Environment Orchestration Service.
allows third parties (other than your employees and
contractors) to create distributed system environments.

Change Date: 2027-10-19
Change Date: 2027-10-23

Change License: AGPLv3 (GNU Affero General Public License Version 3)

Expand Down
2 changes: 1 addition & 1 deletion api/golang/kurtosis_version/kurtosis_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ const (
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
// This is necessary so that Kurt Core consumers will know if they're compatible with the currently-running
// API container
KurtosisVersion = "0.84.9"
KurtosisVersion = "0.84.10"
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
)
2 changes: 1 addition & 1 deletion api/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kurtosis-sdk"
version = "0.84.9"
version = "0.84.10"
license = "BUSL-1.1"
description = "Rust SDK for Kurtosis"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion api/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kurtosis-sdk",
"//": "NOTE: DO NOT UPDATE THIS VERSION MANUALLY - IT WILL BE UPDATED DURING THE RELEASE PROCESS!",
"version": "0.84.9",
"version": "0.84.10",
"main": "./build/index",
"description": "This repo contains a Typescript client for communicating with the Kurtosis Engine server, which is responsible for creating, managing and destroying Kurtosis Enclaves.",
"types": "./build/index",
Expand Down
2 changes: 1 addition & 1 deletion api/typescript/src/kurtosis_version/kurtosis_version.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
// This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running
// API container
export const KURTOSIS_VERSION: string = "0.84.9"
export const KURTOSIS_VERSION: string = "0.84.10"
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
29 changes: 10 additions & 19 deletions cli/cli/commands/package/init_cmd/init_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@ import (
"github.com/kurtosis-tech/kurtosis/cli/cli/command_framework/lowlevel/flags"
"github.com/kurtosis-tech/kurtosis/cli/cli/command_str_consts"
"github.com/kurtosis-tech/kurtosis/cli/cli/kurtosis_package"
"github.com/kurtosis-tech/kurtosis/cli/cli/user_support_constants"
"github.com/kurtosis-tech/stacktrace"
"os"
)

const (
packageNameArgKey = "package-name"
packageNameArgDefaultValue = ""
packageNameArgIsOptional = false
packageNameArgDefaultValue = "github.com/example-org/example-package"
packageNameArgIsOptional = true
packageNameArgIsGreedy = false

executablePackageFlagKey = "main"
executablePackageFlagDefaultValue = "false"
alwaysCreateExecutablePackage = true

validPackageNameExample = "github.com/kurtosis-tech/ethereum-package"
)

// InitCmd we only fill in the required struct fields, hence the others remain nil
// nolint: exhaustruct
var InitCmd = &lowlevel.LowlevelKurtosisCommand{
CommandStr: command_str_consts.InitCmdStr,
ShortDescription: "Creates a new Kurtosis package",
Expand All @@ -35,14 +39,6 @@ var InitCmd = &lowlevel.LowlevelKurtosisCommand{
ValidationFunc: validatePackageNameArg,
},
},
Flags: []*flags.FlagConfig{
{
Key: executablePackageFlagKey,
Usage: "indicates that the created package is an executable package, and generates a 'main.star' if one does not already exist.",
Type: flags.FlagType_Bool,
Default: executablePackageFlagDefaultValue,
},
},
PreValidationAndRunFunc: nil,
RunFunc: run,
PostValidationAndRunFunc: nil,
Expand All @@ -54,17 +50,12 @@ func run(ctx context.Context, flags *flags.ParsedFlags, args *args.ParsedArgs) e
return stacktrace.Propagate(err, "an error occurred getting the value of argument with key '%v'", packageNameArgKey)
}

executablePackageFlag, err := flags.GetBool(executablePackageFlagKey)
if err != nil {
return stacktrace.Propagate(err, "an error occurred getting the value of flag '%v'", executablePackageFlagKey)
}

packageDestinationDirpath, err := os.Getwd()
if err != nil {
return stacktrace.Propagate(err, "An error occurred getting the current working directory for creating the Kurtosis package")
}

if err := kurtosis_package.InitializeKurtosisPackage(packageDestinationDirpath, packageNameArg, executablePackageFlag); err != nil {
if err := kurtosis_package.InitializeKurtosisPackage(packageDestinationDirpath, packageNameArg, alwaysCreateExecutablePackage); err != nil {
return stacktrace.Propagate(err, "An error occurred initializing the Kurtosis package '%s' in '%s'", packageNameArg, packageDestinationDirpath)
}

Expand All @@ -78,7 +69,7 @@ func validatePackageNameArg(_ context.Context, _ *flags.ParsedFlags, args *args.
}

if _, err := shared_utils.ParseGitURL(packageNameArg); err != nil {
return stacktrace.Propagate(err, "An erro occurred validating package name '%v', invalid GitHub URL", packageNameArg)
return stacktrace.Propagate(err, "An error occurred validating package name '%v', invalid GitHub URL, the package name has to be a valid GitHub URL like '%s'. You can see more here: '%s' ", packageNameArg, validPackageNameExample, user_support_constants.StarlarkPackagesReferenceURL)
}

return nil
Expand Down
3 changes: 0 additions & 3 deletions docs/docs/cli-reference/package-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ Usage:

The `package_name` argument is the [locator][locators]to the package, in the format `github.com/USER/REPO`.

This command accepts the following flags:
- `--main`: indicates that the created package is an [executable package][executable-package], and generates a `main.star` if one does not already exist. If a `main.star` already exists, does nothing.

[package]: ../concepts-reference/packages.md
[kurtosis-yml]: ../concepts-reference/kurtosis-yml.md
[locators]: ../concepts-reference/locators.md
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.84.9
0.84.10

0 comments on commit cc2ca66

Please sign in to comment.