Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/publish-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."
Expand Down Expand Up @@ -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
Expand All @@ -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)"
Expand All @@ -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
Expand All @@ -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
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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)"
Expand All @@ -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

4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).

Expand Down
12 changes: 6 additions & 6 deletions docs/PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/getlawrence/vercelreceiver
module github.com/control-theory/vercelreceiver

go 1.24.6

Expand Down
2 changes: 1 addition & 1 deletion otel-collector/builder-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions scripts/publish-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Loading