Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(release): remove goreleaser #9909

Merged
merged 8 commits into from
Feb 7, 2025
Merged

Conversation

chris-olszewski
Copy link
Member

@chris-olszewski chris-olszewski commented Feb 6, 2025

Description

Finally remove goreleaser after Go left the codebase a year ago. This does almost exactly what we were doing with goreleaser except we now base the native releases off of version.txt contents like every other package and not Git tags.

I highly recommend reading each commit especially the first one as I mark up the goreleaser flow we were using explaining what exactly it did.

Updates from #9905
Include LICENSE in the native package distributions

Create a tarball containing a directory that contains our package. Closer reading of the npm docs make it clear this is what it expects:

A package is interpreted the same way as other commands:
a) a folder containing a program described by a package.json file
b) a gzipped tarball containing (a)

We had wrap_in_directory: true in our goreleaser workflow which did this for us.

Testing Instructions

Latest dry run

The dry run got up to the publishing step! All of the tar.gz files look correct: logs

Running locally, the contents of tar.gz looks to be correct:

[0 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo/cli $ tar tf dist/darwin-x64-2.4.1-canary.0.tar.gz
turbo-darwin-x64/
turbo-darwin-x64/LICENSE
turbo-darwin-x64/README.md
turbo-darwin-x64/bin/
turbo-darwin-x64/package.json
turbo-darwin-x64/bin/turbo

What hasn't been tested is the actual npm publish call, but I am fairly certain that will work as it's a very similar shell command to the one used in goreleaser

Copy link

vercel bot commented Feb 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2025 4:40pm

@chris-olszewski chris-olszewski marked this pull request as ready for review February 6, 2025 16:41
@chris-olszewski chris-olszewski requested a review from a team as a code owner February 6, 2025 16:41
@tknickman tknickman merged commit 1631029 into main Feb 7, 2025
56 checks passed
@tknickman tknickman deleted the olszewski/chore_remove_goreleaser branch February 7, 2025 00:49
@tknickman tknickman restored the olszewski/chore_remove_goreleaser branch February 7, 2025 01:22
tknickman added a commit that referenced this pull request Feb 7, 2025
tknickman added a commit that referenced this pull request Feb 7, 2025
Reverts #9909

Issue with marking bin as executable on publish:

```
<ref *1> Error: spawnSync /Users/knickman/.npm/_npx/41b87e1488d166d0/node_modules/turbo-darwin-arm64/bin/turbo EACCES
    at Object.spawnSync (node:internal/child_process:1117:20)
    at spawnSync (node:child_process:876:24)
    at Object.execFileSync (node:child_process:919:15)
    at Object.<anonymous> (/Users/knickman/.npm/_npx/41b87e1488d166d0/node_modules/turbo/bin/turbo:266:17)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    at node:internal/main/run_main_module:28:49 {
  errno: -13,
  code: 'EACCES',
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants