diff --git a/README.md b/README.md index 0923ec1..b7ff459 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,11 @@ We won't be building binaries ourselves either, the will be done by [goreleaser] Be sure to have it [installed](https://goreleaser.com/quick-start/), also [generate](https://github.com/settings/tokens/new?scopes=repo,write:packages) a github token and put it in `GITHUB_TOKEN` variable +## Inspiration + +The code is inspired a lot and uses parts of the [flyctl](https://github.com/superfly/flyctl) code. The files +with the borrowings mention this explicitly. + ## License MIT diff --git a/generated/buildinfo/buildinfo.go b/generated/buildinfo/buildinfo.go index 476a504..11c34eb 100644 --- a/generated/buildinfo/buildinfo.go +++ b/generated/buildinfo/buildinfo.go @@ -12,6 +12,9 @@ import ( "github.com/pkg/errors" ) +// The code has been borrowed from flyctl project - https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/buildinfo +// This code in the file is subject to Apache-2.0 license as per flyctl project + var ( // set during init cachedVersion version.Version diff --git a/generated/buildinfo/env_dev.go b/generated/buildinfo/env_dev.go index fc92068..0638627 100644 --- a/generated/buildinfo/env_dev.go +++ b/generated/buildinfo/env_dev.go @@ -8,6 +8,9 @@ import ( "github.com/can3p/kleiner/shared/version" ) +// The code has been borrowed from flyctl project - https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/buildinfo +// This code in the file is subject to Apache-2.0 license as per flyctl project + var ( buildDate = "" environment = "development" diff --git a/generated/buildinfo/env_production.go b/generated/buildinfo/env_production.go index b3c7711..503c8a4 100644 --- a/generated/buildinfo/env_production.go +++ b/generated/buildinfo/env_production.go @@ -8,6 +8,9 @@ import ( "github.com/can3p/kleiner/shared/version" ) +// The code has been borrowed from flyctl project - https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/buildinfo +// This code in the file is subject to Apache-2.0 license as per flyctl project + var ( buildDate = "" buildVersion = "" diff --git a/shared/types/types.go b/shared/types/types.go index 9e2dbea..bfad1a8 100644 --- a/shared/types/types.go +++ b/shared/types/types.go @@ -7,6 +7,9 @@ import ( "github.com/can3p/kleiner/shared/version" ) +// The struct has been borrowed from flyctl project - https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/buildinfo/buildinfo.go +// This code in the file is subject to Apache-2.0 license as per flyctl project + type BuildInfo struct { Name string Version version.Version diff --git a/shared/version/version.go b/shared/version/version.go index 9f05a20..f9174d5 100644 --- a/shared/version/version.go +++ b/shared/version/version.go @@ -9,6 +9,7 @@ import ( ) // From https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/version/version.go +// This code is subject to Apache-2.0 license as per flyctl project type InvalidVersionError struct { val string diff --git a/shared/version/version_test.go b/shared/version/version_test.go index badbd84..48f4793 100644 --- a/shared/version/version_test.go +++ b/shared/version/version_test.go @@ -1,6 +1,7 @@ package version // from https://github.com/superfly/flyctl/blob/0dff860a878e2b280f2f53ce2aaf21ce39d800c2/internal/version/version_test.go +// This code is subject to Apache-2.0 license as per flyctl project import ( "encoding/json"