Skip to content

Commit

Permalink
rename go mod name to github.com/golingon/lingon
Browse files Browse the repository at this point in the history
  • Loading branch information
jlarfors committed Apr 9, 2024
1 parent 862afa6 commit 08cdf6d
Show file tree
Hide file tree
Showing 274 changed files with 1,379 additions and 890 deletions.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ linters-settings:
# - exitAfterDefer
gofumpt:
# Module path which contains the source code being formatted.
module-path: github.com/volvo-cars/lingon
module-path: github.com/golingon/lingon
# Choose whether to use the extra rules.
# Default: false
extra-rules: true
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ brews:
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
folder: Formula
homepage: "https://github.com/volvo-cars/lingon"
homepage: "https://github.com/golingon/lingon"
description: |
Lingon binaries:
- explode is a command line tool to organize kubernetes manifests according to their kind. (YAML to YAML)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The following is a set of guidelines for contributing to this open source projec

## Issues

Issues can be created [here](https://github.com/volvo-cars/lingon/issues/new).
Issues can be created [here](https://github.com/golingon/lingon/issues/new).

_Provide details on how users can create or report issues for this project here._

Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Copyright 2023 Volvo Car Corporation

[github.com/volvo-cars/lingon]
[github.com/golingon/lingon]

Components:

Expand Down
4 changes: 2 additions & 2 deletions cmd/explode/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"path/filepath"
"runtime/debug"

"github.com/volvo-cars/lingon/pkg/kube"
"github.com/volvo-cars/lingon/pkg/kubeutil"
"github.com/golingon/lingon/pkg/kube"
"github.com/golingon/lingon/pkg/kubeutil"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/kygo/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (
"runtime/debug"
"strings"

"github.com/volvo-cars/lingon/pkg/kube"
"github.com/volvo-cars/lingon/pkg/kubeutil"
"github.com/golingon/lingon/pkg/kube"
"github.com/golingon/lingon/pkg/kubeutil"
apiextensions "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
apiextensionsbeta "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
"k8s.io/apimachinery/pkg/runtime"
kubescheme "k8s.io/client-go/kubernetes/scheme"
)

const crdMsg = "IF there is an issue with CRDs. Please visit this page to solve it https://github.com/volvo-cars/lingon/tree/main/docs/kubernetes/crd"
const crdMsg = "IF there is an issue with CRDs. Please visit this page to solve it https://github.com/golingon/lingon/tree/main/docs/kubernetes/crd"

func main() {
var in, out, appName, pkgName string
Expand Down
2 changes: 1 addition & 1 deletion cmd/kygo/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Either:
"path/filepath"
"github.com/XXX/YYY/myapp"
"github.com/volvo-cars/lingon/pkg/kube"
"github.com/golingon/lingon/pkg/kube"
)
func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/kygo/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import (
"path/filepath"

"github.com/XXX/YYY/myapp"
"github.com/volvo-cars/lingon/pkg/kube"
"github.com/golingon/lingon/pkg/kube"
)

func main() {
Expand Down
8 changes: 6 additions & 2 deletions cmd/terragen/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ The flags are:
-pkg string
Go pkg for the generated Go files (required)
-provider value
provider to generate Go files for (required), e.g. aws=hashicorp/aws:4.49.0
-tfout string
directory to generate Terraform providers schema (default ".lingon/schemas")
directory to generate Terraform providers schema (default ".lingon/schemas")
*/
package main

Expand All @@ -35,7 +39,7 @@ import (
"path/filepath"
"runtime/debug"

"github.com/volvo-cars/lingon/pkg/terragen"
"github.com/golingon/lingon/pkg/terragen"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/tools/ci/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func Notice() error {
"report",
recDir,
"--template=./cmd/tools/ci/licenses.tpl",
"--ignore=github.com/volvo-cars/lingon",
"--ignore=github.com/golingon/lingon",
)
cmd.Stdout = &stdout
cmd.Stderr = &stderr
Expand Down
2 changes: 1 addition & 1 deletion cmd/tools/ci/notice.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func createNotice(notice io.Writer, lics []license) error {
var txt bytes.Buffer

txt.WriteString("Copyright 2023 Volvo Car Corporation\n\n")
txt.WriteString("[github.com/volvo-cars/lingon]\n\n")
txt.WriteString("[github.com/golingon/lingon]\n\n")
txt.WriteString("Components:\n\n")
for _, lic := range lics {
txt.WriteString(
Expand Down
6 changes: 4 additions & 2 deletions cmd/tools/filtersb/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"path/filepath"
"strings"

"github.com/volvo-cars/lingon/pkg/terragen"
"github.com/golingon/lingon/pkg/terragen"
)

func main() {
Expand Down Expand Up @@ -122,7 +122,9 @@ func (p *providerFlag) Set(value string) error {
localName := pMap[0]
sourceVersion := strings.SplitN(pMap[1], ":", 2)
if len(sourceVersion) == 1 {
return fmt.Errorf("provider format incorrect: missing `:` in `source:version`")
return fmt.Errorf(
"provider format incorrect: missing `:` in `source:version`",
)
}
source := sourceVersion[0]
version := sourceVersion[1]
Expand Down
35 changes: 22 additions & 13 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright (c) 2023 Volvo Car Corporation
// SPDX-License-Identifier: Apache-2.0

// Lingon is a collection of libraries and tools for building platforms using Go.
// Lingon is a collection of libraries and tools for building platforms using
// Go.
//
// The following technologies are currently supported:
// - Terraform
Expand All @@ -18,13 +19,16 @@
// # Kube
//
// - [kube.App] struct that is embedded to mark kubernetes applications
// - [kube.Export] converts kubernetes objects defined as Go struct to kubernetes manifests in YAML.
// - [kube.Explode] kubernetes manifests in YAML to multiple files, organized by namespace.
//
// - [kube.Export] converts kubernetes objects defined as Go struct to
// kubernetes manifests in YAML. - [kube.Explode] kubernetes manifests in YAML
// to multiple files, organized by namespace.
// - [kube.Import] converts kubernetes manifests in YAML to Go structs.
//
// # Kubeconfig
//
// utility package to read and merge kubeconfig files without any dependencies on `go-client`.
// utility package to read and merge kubeconfig files without any dependencies
// on `go-client`.
//
// # Kubeutil
//
Expand All @@ -38,18 +42,23 @@
// # Terragen
//
// Generate Go code for Terraform providers.
// - [terragen.GenerateProviderSchema] generates a terraform provider JSON schema from terraform provider registry.
// - [terragen.GenerateGoCode] converts a terraform provider schema to Go structs.
// - [terragen.GenerateProviderSchema] generates a terraform provider JSON
// schema from terraform provider registry. - [terragen.GenerateGoCode] converts
// a terraform provider schema to Go structs.
//
// # Testutils
//
// Reusable test functions.
//
// [kube.Export]: https://pkg.go.dev/github.com/volvo-cars/lingon/pkg/kube#Export
// [kube.Explode]: https://pkg.go.dev/github.com/volvo-cars/lingon/pkg/kube#Explode
// [kube.Import]: https://pkg.go.dev/github.com/volvo-cars/lingon/pkg/kube#Import
// [kube.App]: https://pkg.go.dev/github.com/volvo-cars/lingon/pkg/kube#App
// [terra.Export]: https://pkg.go.dev/github.com/volvo-cars/lingon/pkg/terra#Export
// [terragen.GenerateProviderSchema]: https://pkg.go.dev/github.com/volvo-cars/lingon/pkg/terragen#GenerateProviderSchema
// [terragen.GenerateGoCode]: https://pkg.go.dev/github.com/volvo-cars/lingon/pkg/terragen#GenerateGoCode
// [kube.Export]: https://pkg.go.dev/github.com/golingon/lingon/pkg/kube#Export
// [kube.Explode]:
// https://pkg.go.dev/github.com/golingon/lingon/pkg/kube#Explode
// [kube.Import]: https://pkg.go.dev/github.com/golingon/lingon/pkg/kube#Import
// [kube.App]: https://pkg.go.dev/github.com/golingon/lingon/pkg/kube#App
// [terra.Export]:
// https://pkg.go.dev/github.com/golingon/lingon/pkg/terra#Export
// [terragen.GenerateProviderSchema]:
// https://pkg.go.dev/github.com/golingon/lingon/pkg/terragen#GenerateProviderSchema
// [terragen.GenerateGoCode]:
// https://pkg.go.dev/github.com/golingon/lingon/pkg/terragen#GenerateGoCode
package main
Loading

0 comments on commit 08cdf6d

Please sign in to comment.