diff --git a/.github/workflows/publish-module.yml b/.github/workflows/publish-module.yml index 9f29b64..d887502 100644 --- a/.github/workflows/publish-module.yml +++ b/.github/workflows/publish-module.yml @@ -73,7 +73,7 @@ jobs: run: | VERSION="${{ steps.get_version.outputs.VERSION }}" echo "Checking if module version $VERSION is already published..." - if go list -m github.com/getlawrence/vercelreceiver@$VERSION >/dev/null 2>&1; then + if go list -m github.com/control-theory/vercelreceiver@$VERSION >/dev/null 2>&1; then echo "Module version $VERSION is already published. Use 'force' option to republish." exit 1 else @@ -85,7 +85,7 @@ jobs: run: | VERSION="${{ steps.get_version.outputs.VERSION }}" echo "Force mode enabled. Checking if module version $VERSION exists..." - if go list -m github.com/getlawrence/vercelreceiver@$VERSION >/dev/null 2>&1; then + if go list -m github.com/control-theory/vercelreceiver@$VERSION >/dev/null 2>&1; then echo "⚠️ Module version $VERSION is already published, but force mode is enabled." else echo "Module version $VERSION is not published yet." @@ -118,11 +118,11 @@ jobs: export GOPROXY=proxy.golang.org # Trigger module indexing by listing the module - go list -m github.com/getlawrence/vercelreceiver@$VERSION + go list -m github.com/control-theory/vercelreceiver@$VERSION echo "✅ Module publication triggered successfully!" - echo "📦 Module URL: https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" - echo "📚 Documentation: https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" + echo "📦 Module URL: https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" + echo "📚 Documentation: https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" echo "Note: It may take a few minutes for the module to appear on pkg.go.dev" - name: Verify module publication @@ -132,10 +132,10 @@ jobs: # Wait up to 5 minutes for the module to be indexed for i in {1..30}; do - if go list -m github.com/getlawrence/vercelreceiver@$VERSION >/dev/null 2>&1; then + if go list -m github.com/control-theory/vercelreceiver@$VERSION >/dev/null 2>&1; then echo "✅ Module successfully published and indexed!" - echo "📦 Module URL: https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" - echo "📚 Documentation: https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" + echo "📦 Module URL: https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" + echo "📚 Documentation: https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" break else echo "⏳ Waiting for module to be indexed... (attempt $i/30)" @@ -144,12 +144,12 @@ jobs: done # Final verification - if go list -m github.com/getlawrence/vercelreceiver@$VERSION >/dev/null 2>&1; then + if go list -m github.com/control-theory/vercelreceiver@$VERSION >/dev/null 2>&1; then echo "✅ Final verification: Module is published and accessible" echo "🎉 Success! Your module is now available on pkg.go.dev" else echo "⚠️ Module publication may still be in progress." - echo "🔍 Check manually: https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" + echo "🔍 Check manually: https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" fi - name: Create summary @@ -159,14 +159,14 @@ jobs: echo "" >> $GITHUB_STEP_SUMMARY echo "**Version:** \`$VERSION\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - echo "**Module URL:** [pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION](https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION)" >> $GITHUB_STEP_SUMMARY + echo "**Module URL:** [pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION](https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION)" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "**Installation:**" >> $GITHUB_STEP_SUMMARY echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY - echo "go get github.com/getlawrence/vercelreceiver@$VERSION" >> $GITHUB_STEP_SUMMARY + echo "go get github.com/control-theory/vercelreceiver@$VERSION" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "**Import:**" >> $GITHUB_STEP_SUMMARY echo "\`\`\`go" >> $GITHUB_STEP_SUMMARY - echo "import \"github.com/getlawrence/vercelreceiver\"" >> $GITHUB_STEP_SUMMARY + echo "import \"github.com/control-theory/vercelreceiver\"" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7336d86..99bdfa5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -125,7 +125,7 @@ jobs: run: | VERSION="${{ steps.get_version.outputs.VERSION }}" echo "Checking if module version $VERSION is already published..." - if go list -m github.com/getlawrence/vercelreceiver@$VERSION >/dev/null 2>&1; then + if go list -m github.com/control-theory/vercelreceiver@$VERSION >/dev/null 2>&1; then echo "Module version $VERSION is already published. Skipping publication." exit 0 else @@ -141,10 +141,10 @@ jobs: export GOPROXY=proxy.golang.org # Trigger module indexing by listing the module - go list -m github.com/getlawrence/vercelreceiver@$VERSION + go list -m github.com/control-theory/vercelreceiver@$VERSION echo "Module publication triggered successfully!" - echo "The module will be available at: https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" + echo "The module will be available at: https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" echo "Note: It may take a few minutes for the module to appear on pkg.go.dev" - name: Verify module publication @@ -154,9 +154,9 @@ jobs: # Wait up to 5 minutes for the module to be indexed for i in {1..30}; do - if go list -m github.com/getlawrence/vercelreceiver@$VERSION >/dev/null 2>&1; then + if go list -m github.com/control-theory/vercelreceiver@$VERSION >/dev/null 2>&1; then echo "✅ Module successfully published and indexed!" - echo "📦 Module URL: https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" + echo "📦 Module URL: https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" break else echo "⏳ Waiting for module to be indexed... (attempt $i/30)" @@ -165,9 +165,9 @@ jobs: done # Final verification - if go list -m github.com/getlawrence/vercelreceiver@$VERSION >/dev/null 2>&1; then + if go list -m github.com/control-theory/vercelreceiver@$VERSION >/dev/null 2>&1; then echo "✅ Final verification: Module is published and accessible" else - echo "⚠️ Module publication may still be in progress. Check https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$VERSION" + echo "⚠️ Module publication may still be in progress. Check https://pkg.go.dev/github.com/control-theory/vercelreceiver@$VERSION" fi diff --git a/.golangci.yml b/.golangci.yml index e7c69a4..2de87fa 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,11 +7,11 @@ linters-settings: sections: - standard - default - - prefix(github.com/getlawrence/vercelreceiver) + - prefix(github.com/control-theory/vercelreceiver) gofmt: simplify: true goimports: - local-prefixes: github.com/getlawrence/vercelreceiver + local-prefixes: github.com/control-theory/vercelreceiver gocyclo: min-complexity: 50 dupl: diff --git a/README.md b/README.md index 6267f93..eac0638 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ dist: receivers: # Include the Vercel receiver from the published module - - gomod: github.com/getlawrence/vercelreceiver v0.1.0 + - gomod: github.com/control-theory/vercelreceiver v0.1.0 # Add other receivers as needed # - gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.138.0 @@ -76,7 +76,7 @@ Once you have your builder configuration: ### Version Compatibility -Make sure to use a compatible version of the receiver that matches your OpenTelemetry Collector version. The receiver should be compatible with collector versions v0.138.0 and later. Check the [releases](https://github.com/getlawrence/vercelreceiver/releases) page for available versions. +Make sure to use a compatible version of the receiver that matches your OpenTelemetry Collector version. The receiver should be compatible with collector versions v0.138.0 and later. Check the [releases](https://github.com/control-theory/vercelreceiver/releases) page for available versions. For more information about OCB, see the [OpenTelemetry Collector Builder documentation](https://github.com/open-telemetry/opentelemetry-collector/tree/main/cmd/builder). diff --git a/docs/PUBLISHING.md b/docs/PUBLISHING.md index bb2cf64..7983962 100644 --- a/docs/PUBLISHING.md +++ b/docs/PUBLISHING.md @@ -34,7 +34,7 @@ The easiest way to publish is to create a Git tag, which automatically triggers ``` 3. **Monitor the workflow:** - - Check the [GitHub Actions](https://github.com/getlawrence/vercelreceiver/actions) tab + - Check the [GitHub Actions](https://github.com/control-theory/vercelreceiver/actions) tab - The workflow will automatically: - Run all tests - Create a GitHub release with binaries @@ -45,7 +45,7 @@ The easiest way to publish is to create a Git tag, which automatically triggers You can also manually trigger the publishing workflow: -1. Go to the [Publish Module workflow](https://github.com/getlawrence/vercelreceiver/actions/workflows/publish-module.yml) +1. Go to the [Publish Module workflow](https://github.com/control-theory/vercelreceiver/actions/workflows/publish-module.yml) 2. Click "Run workflow" 3. Enter the version tag (e.g., `v1.0.0`) 4. Optionally enable "Force" to republish an existing version @@ -103,13 +103,13 @@ The automated workflow performs these steps: Once published, your module will be available at: -- **Module URL:** https://pkg.go.dev/github.com/getlawrence/vercelreceiver@v1.0.0 -- **Documentation:** https://pkg.go.dev/github.com/getlawrence/vercelreceiver@v1.0.0 +- **Module URL:** https://pkg.go.dev/github.com/control-theory/vercelreceiver@v1.0.0 +- **Documentation:** https://pkg.go.dev/github.com/control-theory/vercelreceiver@v1.0.0 Users can install your module with: ```bash -go get github.com/getlawrence/vercelreceiver@v1.0.0 +go get github.com/control-theory/vercelreceiver@v1.0.0 ``` ## Troubleshooting @@ -170,4 +170,4 @@ If tests fail during publishing: - [Go Module Publishing Documentation](https://go.dev/doc/modules/publishing) - [Semantic Versioning](https://semver.org/) - [pkg.go.dev](https://pkg.go.dev) -- [GitHub Actions](https://github.com/getlawrence/vercelreceiver/actions) +- [GitHub Actions](https://github.com/control-theory/vercelreceiver/actions) diff --git a/go.mod b/go.mod index ce17f4c..a4cf109 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/getlawrence/vercelreceiver +module github.com/control-theory/vercelreceiver go 1.24.6 diff --git a/otel-collector/builder-config.yaml b/otel-collector/builder-config.yaml index 225e885..09abf53 100644 --- a/otel-collector/builder-config.yaml +++ b/otel-collector/builder-config.yaml @@ -5,7 +5,7 @@ dist: otelcol_version: v0.138.0 receivers: - - gomod: github.com/getlawrence/vercelreceiver v0.1.0 + - gomod: github.com/control-theory/vercelreceiver v0.1.0 path: ../ # Use local source code exporters: diff --git a/scripts/publish-test.sh b/scripts/publish-test.sh index 1d34f42..2f9130c 100755 --- a/scripts/publish-test.sh +++ b/scripts/publish-test.sh @@ -86,10 +86,10 @@ echo "✅ Tag $NEW_VERSION created and pushed successfully!" echo "" echo "🎉 The publishing workflow should now be triggered automatically." echo "📊 Check the GitHub Actions tab to monitor the progress:" -echo " https://github.com/getlawrence/vercelreceiver/actions" +echo " https://github.com/control-theory/vercelreceiver/actions" echo "" echo "📦 Once published, your module will be available at:" -echo " https://pkg.go.dev/github.com/getlawrence/vercelreceiver@$NEW_VERSION" +echo " https://pkg.go.dev/github.com/control-theory/vercelreceiver@$NEW_VERSION" echo "" echo "🔍 You can also manually trigger the publishing workflow at:" -echo " https://github.com/getlawrence/vercelreceiver/actions/workflows/publish-module.yml" +echo " https://github.com/control-theory/vercelreceiver/actions/workflows/publish-module.yml"