-
Notifications
You must be signed in to change notification settings - Fork 293
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
ollama/0.5.4 package update #37372
ollama/0.5.4 package update #37372
Conversation
octo-sts
bot
commented
Dec 18, 2024
Signed-off-by: wolfi-bot <121097084+wolfi-bot@users.noreply.github.com>
Gen AI suggestions to solve the build error: • Detected Error:
• Error Category: Build Configuration • Failure Point: During • Root Cause Analysis: The error suggests that • Suggested Fix:
pipeline:
- uses: git-checkout
with:
repository: https://github.com/ollama/ollama
tag: v${{package.version}}
expected-commit: 2ddc32d5c5386b28062a46ac6cfea5160cd9f600
- uses: go/bump
with:
deps: golang.org/x/crypto@v0.31.0
- runs: |
# Ensure we're in the correct directory
cd ${{targets.destdir}}
# Skip generate step as it's not required
CGO_ENABLED=1 go build -tags netgo -ldflags '-w -s -linkmode external -extldflags "-static"' .
mkdir -p ${{targets.destdir}}/usr/bin
mv ollama ${{targets.destdir}}/usr/bin/ • Explanation: • Additional Notes:
• References:
|
Signed-off-by: hbh7 <hunter.harris@chainguard.dev>
Please use 👍 or 👎 on this comment to indicate if you agree or disagree with the recommendation. To provide more detailed feedback please comment on the recommendation prefixed with /ai-verify: e.g. /ai-verify partially helpful but I also adde bash to the build environment Gen AI suggestions to solve the build error: • Detected Error:
• Error Category: Build Configuration • Failure Point: Go generate step failing during the build pipeline when trying to run make command as part of code generation • Root Cause Analysis: The error occurs during • Suggested Fix:
- runs: |
cd llama
go generate -x ./... # Add -x flag to see what commands are being run
cd ..
CGO_ENABLED=1 go build -ldflags '-linkmode external -extldflags "-static"' .
mkdir -p ${{targets.destdir}}/usr/bin
mv ollama ${{targets.destdir}}/usr/bin Or alternatively, skip the generate step if it's not critical: - runs: |
CGO_ENABLED=1 go build -ldflags '-linkmode external -extldflags "-static"' .
mkdir -p ${{targets.destdir}}/usr/bin
mv ollama ${{targets.destdir}}/usr/bin • Explanation: The error suggests that
• Additional Notes:
• References:
|
Signed-off-by: debasishbsws <debasishbsws.dev@gmail.com>