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

asdf 0.16.0 #205761

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

asdf 0.16.0 #205761

wants to merge 1 commit into from

Conversation

Stratus3D
Copy link

@Stratus3D Stratus3D commented Jan 28, 2025

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

asdf v0.15.0 is the mot recent tag of asdf and the version currently available via Homebrew. I've been preparing to release asdf asdf v0.16.0, which is a complete rewrite in Go. Because of the change of language, the build and install process changes significantly. Overall the formula is more straightforward now and more in line with the numerous other Go tools distributed via Homebrew.

Currently brew audit --strict asdf is failing because a version must be specified, but the new version of asdf that goes with these changes has not been tagged yet (it will be shortly).

Related PRs:

@github-actions github-actions bot added the go Go use is a significant feature of the PR or issue label Jan 28, 2025
Formula/a/asdf.rb Outdated Show resolved Hide resolved
Formula/a/asdf.rb Outdated Show resolved Hide resolved
@SMillerDev SMillerDev added the prerelease-testing Pull request from upstream, testing a pre-release with homebrew dependencies label Jan 28, 2025
@Stratus3D
Copy link
Author

@SMillerDev I've updated the PR based on your comments, it's much simpler now. asdf v0.16.0 hasn't been released yet so I'm keeping this marked as a draft.

@Stratus3D Stratus3D changed the title asdf: prepare for v0.16.0 release asdf: update for v0.16.0 release Jan 30, 2025
@Stratus3D Stratus3D marked this pull request as ready for review January 30, 2025 01:48
@Stratus3D Stratus3D force-pushed the master branch 2 times, most recently from eccda73 to 21b0534 Compare January 30, 2025 01:51
@Stratus3D
Copy link
Author

Hi @SMillerDev , I updated this PR with a new tag and revision for the URL as asdf v0.16.0 was tagged this evening. It now passes brew audit --strict <formula>.

@Stratus3D Stratus3D changed the title asdf: update for v0.16.0 release asdf: v0.16.0 update Jan 30, 2025
@chenrui333 chenrui333 changed the title asdf: v0.16.0 update asdf 0.16.0 Jan 30, 2025
@chenrui333 chenrui333 mentioned this pull request Jan 30, 2025
Formula/a/asdf.rb Outdated Show resolved Hide resolved
@chenrui333
Copy link
Member

chenrui333 commented Jan 30, 2025

@Stratus3D also need to amend the commit msg as asdf 0.16.0.

@Stratus3D
Copy link
Author

@Stratus3D also need to amend the commit msg as asdf 0.16.0.

PR updated.

@samford samford removed the prerelease-testing Pull request from upstream, testing a pre-release with homebrew dependencies label Jan 30, 2025
Copy link
Member

@p-linnane p-linnane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Stratus3D! One minor nit and then this should be good to go.

source #{opt_libexec}/asdf.fish
Restart your terminal for the settings to take effect.
EOS
system("go", "build", *std_go_args(ldflags: "-s -X main.version=#{version}"), "./cmd/asdf")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
system("go", "build", *std_go_args(ldflags: "-s -X main.version=#{version}"), "./cmd/asdf")
system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}"), "./cmd/asdf"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR updated.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks like you missed the -w from my suggestion. We usually pass -s -w to reduce binary size.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that. Updated the PR again to add the -w flag.

@Stratus3D
Copy link
Author

@p-linnane PR has been updated.

@p-linnane
Copy link
Member

@Stratus3D Please see my outstanding comment. We still need -w in the ldflags.

asdf v0.16.0 has been released. It is a complete rewrite in Go. Because of the
change of language, the build and install process changes significantly. Overall
the formula is more straightforward now and more in line with the numerous other
Go tools distributed via Homebrew.
@Stratus3D
Copy link
Author

PR updated @p-linnane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Go use is a significant feature of the PR or issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants