Re: git: 116fd79ff844 - main - lang/go123: Update to 1.23.2

From: Adam Weinberger <adamw_at_adamw.org>
Date: Sun, 06 Oct 2024 15:18:15 UTC
> On Oct 5, 2024, at 18:17, Ashish SHUKLA <ashish@freebsd.org> wrote:
> 
> On Sun Oct 7, 2024 at 12:04 AM CEST, Adam Weinberger wrote:
>> I’d really like to, but TBH I can’t figure out the right incantation to match the correct ports. If anybody can tell me how to do it correctly, I’d much appreciate it.
> 
> While being at the root of my ports clone, and /usr/ports updated (along with
> latest INDEX present), I would use following to bump, and add the
> changes to git index:
> 
> # switch to a different branch (to prevent accidents on main branch)
> ❯ git checkout -b bump/go
> 
> # bump ports
> ❯ grep -F go123-1.23.1 /usr/ports/INDEX-14 |awk '-F|' '{ print $2; }' | sed -e 's,/usr/ports/,,' -e '/lang\/go123/d' |sort |uniq |xargs -r -n 1 -Ix sh -c 'portedit bump-revision -i x && git add x/Makefile'
> 
> # review the changes
> ❯ git diff --cached
> 
> # commit the changes
> ❯ git commit ...
> 
> # merge the bump/go commit made above to the main branch
> ❯ git checkout main
> ❯ git cherry-pick bump/go
> 
> # purge bump/go branch, and push
> ❯ git branch -D bump/go
> ❯ git push origin main
> 
>> 
>> 
>> —
>> Adam Weinberger
>> adamw@adamw.org
>> https://www.adamw.org
>> 
>> > On Oct 5, 2024, at 17:58, Ashish SHUKLA <ashish@freebsd.org> wrote:
>> > > On Sat Oct 5, 2024 at 6:16 PM CEST, Adam Weinberger wrote:
>> >> The branch main has been updated by adamw:
>> >> >> URL: https://cgit.FreeBSD.org/ports/commit/?id=116fd79ff844c2432f59f1fe970c6954382af827
>> >> >> commit 116fd79ff844c2432f59f1fe970c6954382af827
>> >> Author:     Adam Weinberger <adamw@FreeBSD.org>
>> >> AuthorDate: 2024-10-05 16:16:03 +0000
>> >> Commit:     Adam Weinberger <adamw@FreeBSD.org>
>> >> CommitDate: 2024-10-05 16:16:03 +0000
>> >> >>    lang/go123: Update to 1.23.2
>> > > Are you also planning to bump PORTREVISION of dependent ports ?
>> > > Thanks!
>> > --
>> > Ashish SHUKLA
>> > <signature.asc>
> 
> --
> Ashish SHUKLA
> <signature.asc>

Thanks for this! I’ve never used portfmt before, and I was trying to accomplish it with Tools/scripts/bumprevision. The dependent ports are now bumped. Thanks again!

# Adam


—
Adam Weinberger
adamw@adamw.org
https://www.adamw.org