Skip to content

Commit

Permalink
specifically mark the code from flyctl, mention the license
Browse files Browse the repository at this point in the history
  • Loading branch information
can3p committed Jan 10, 2024
1 parent ca10bcc commit afcf3e5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions generated/buildinfo/buildinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions generated/buildinfo/env_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<date>"
environment = "development"
Expand Down
3 changes: 3 additions & 0 deletions generated/buildinfo/env_production.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<date>"
buildVersion = "<version>"
Expand Down
3 changes: 3 additions & 0 deletions shared/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions shared/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions shared/version/version_test.go
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit afcf3e5

Please sign in to comment.