Fix for go tools called from make #568

Merged
6543 merged 9 commits from RivenSkaye/tea-cli:toolsfix into main 2023-08-21 22:01:17 +00:00
Contributor

Fixes #567 by offloading the $PATH interpolation to the shell instead of letting make handle it.
Tested and works on Linux, tested and works on Windows using MSYS2/MingW64. Not tested on a pure Windows env without translation layers, but nothing was changed that would actively break it either.

Fixes #567 by offloading the `$PATH` interpolation to the shell instead of letting make handle it. Tested and works on Linux, tested and works on Windows using MSYS2/MingW64. Not tested on a pure Windows env without translation layers, but nothing was changed that would actively break it either.
RivenSkaye added 1 commit 2023-07-28 12:11:28 +00:00
simple fix for go tools
Signed-off-by: Martin Veldwijk <riven@tae.moe>
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 53s
0cfab84c08
lunny approved these changes 2023-07-29 13:24:19 +00:00
Author
Contributor

RE: #567 (comment)
@jolheiser the makefile for gitea works, but it would imply forcing updates of the selected tool versions whenever available. If that's desirable, I'll commit that instead and see if removing the $PATH change altogether works while I'm at it since it makes the entire line redundant

RE: https://gitea.com/gitea/tea/issues/567#issuecomment-746285 @jolheiser the makefile for gitea works, but it would imply forcing updates of the selected tool versions whenever available. If that's desirable, I'll commit that instead and see if removing the `$PATH` change altogether works while I'm at it since it makes the entire line redundant
Owner

it would imply forcing updates of the selected tool versions whenever available.

The referenced makefile runs the tools at those exact versions, which theoretically means it should be more consistent than it currently is because

Makefile Line 149 in 77837e909e
@hash revive > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
means if the user has any version installed, it "passes" this check, even if the version is different.

Unless I'm misunderstanding what you said.

> it would imply forcing updates of the selected tool versions whenever available. The referenced makefile runs the tools at those _exact_ versions, which theoretically means it should be _more_ consistent than it currently is because https://gitea.com/gitea/tea/src/commit/77837e909ef4822b06c475160f9e8dcc693d3393/Makefile#L149 means if the user has any version installed, it "passes" this check, even if the version is different. Unless I'm misunderstanding what you said.
Author
Contributor

if the user has any version installed, it "passes" this check

I'm not too familiar with the Go toolchain, and I'd expect go run x@latest to always download and run the latest version available upstream for a package. Even if any locally available version satisfies that dependency, I'd expect it to still have that effect on CI runners that start in a clean env on every build.

Please do tell me if I'm wrong. I'll see if I have the time to edit and run the proposed changes later today or somewhere this evening on a clean env

> if the user has any version installed, it "passes" this check I'm not _too_ familiar with the Go toolchain, and I'd expect `go run x@latest` to always download and run the latest version available upstream for a package. Even if any locally available version satisfies that dependency, I'd expect it to still have that effect on CI runners that start in a clean env on every build. Please do tell me if I'm wrong. I'll see if I have the time to edit and run the proposed changes later today or somewhere this evening on a clean env
Owner

You're correct, which is why the referenced Makefile in the main repo pins the version, so that everyone runs the same pinned version rather than @latest

You're correct, which is why the referenced Makefile in the main repo pins the version, so that everyone runs the same pinned version rather than `@latest`
RivenSkaye added 1 commit 2023-08-21 06:40:29 +00:00
simple fix for go tools
Signed-off-by: Martin Veldwijk <riven@tae.moe>
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 53s
836dd726e7
RivenSkaye added 1 commit 2023-08-21 06:42:30 +00:00
Remove shell offloading as requested
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 48s
a1a0a213d7
RivenSkaye added 1 commit 2023-08-21 06:53:00 +00:00
attempt to fix module path error
Signed-off-by: Martin Veldwijk <riven@tae.moe>
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 48s
319ef2f070
RivenSkaye added 2 commits 2023-08-21 07:06:32 +00:00
Merge branch 'main' of https://gitea.com/gitea/tea into gitea-main
Signed-off-by: Martin Veldwijk <riven@tae.moe>
bba2b280aa
Merge branch 'gitea-main' into toolsfix
Signed-off-by: Martin Veldwijk <riven@tae.moe>
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 46s
bfaf32edd1
RivenSkaye added 1 commit 2023-08-21 07:18:43 +00:00
Accidentally broke checking for gitea-vim without extension
Signed-off-by: Martin Veldwijk <riven@tae.moe>
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 48s
2e99a21c05
RivenSkaye force-pushed toolsfix from 2e99a21c05 to 299be090a0 2023-08-21 07:21:40 +00:00 Compare
RivenSkaye added 1 commit 2023-08-21 07:22:59 +00:00
Forgot one misspell call
Signed-off-by: Martin Veldwijk <riven@tae.moe>
Some checks failed
check-and-test / check-and-test (pull_request) Failing after 48s
273f848277
RivenSkaye added 1 commit 2023-08-21 07:26:13 +00:00
Missed a section for the package
Signed-off-by: Martin Veldwijk <riven@tae.moe>
All checks were successful
check-and-test / check-and-test (pull_request) Successful in 1m41s
c7901b5c6f
Author
Contributor

Sorry for letting this sit for a while. Had a little while off and forgot some things at the office.

Tested this to work on my local env, on a clean env and it passes the CI runs. Unless there are any concerns, this looks fine to me

Sorry for letting this sit for a while. Had a little while off and forgot some things at the office. Tested this to work on my local env, on a clean env and it passes the CI runs. Unless there are any concerns, this looks fine to me
6543 approved these changes 2023-08-21 22:01:02 +00:00
6543 merged commit e4e8eb07d2 into main 2023-08-21 22:01:17 +00:00
6543 added the
kind/bug
kind/build
labels 2023-08-21 22:01:29 +00:00
6543 added this to the v0.10.0 milestone 2023-08-21 22:01:36 +00:00
Sign in to join this conversation.
No description provided.