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

Convert to use rattler-build #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 5 additions & 18 deletions .scripts/run_osx_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ conda_build:
error_overlinking: true
conda_forge_output_validation: true
test: native
conda_build_tool: rattler-build
38 changes: 0 additions & 38 deletions recipe/meta.yaml

This file was deleted.

42 changes: 42 additions & 0 deletions recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
context:
name: crane
version: 0.20.2

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://github.com/google/go-containerregistry/archive/refs/tags/v${{ version }}.tar.gz
sha256: 064e9c47e3dac49acddccb4afe908b9d835725d371ee9a471fd445d134fbbf1d

build:
number: 0
script:
- if: not win
then: go build -v -ldflags "-w -s -X github.com/google/go-containerregistry/cmd/crane/cmd.Version=${{ version }}" -o $PREFIX/bin/crane ./cmd/crane
- if: win
then: go install -v -ldflags "-w -s -X github.com/google/go-containerregistry/cmd/crane/cmd.Version=${{ version }}" ./cmd/crane
- go-licenses save ./cmd/crane --save_path=./license-files

requirements:
build:
- ${{ compiler('go') }}
- go-licenses

tests:
- script:
- crane version

about:
license: Apache-2.0
license_file:
- LICENSE
- license-files/
summary: A tool for interacting with remote OCI images and registries.
homepage: https://github.com/google/go-containerregistry/tree/main/cmd/crane

extra:
recipe-maintainers:
- benmoss

2 changes: 2 additions & 0 deletions recipe/variant_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
go_compiler:
- go-nocgo
Loading