Extract source into subdirectory
{% set name = "dasel" %}
{% set author = "TomWright" %}
{% set version = "1.24.1" %}
+{% set pkg_src = 'src/' + name %}
package:
- name: go-{{ name|lower }}
+ name: {{ name|lower }}
version: {{ version }}
source:
+ folder: {{ pkg_src }}
url: https://github.com/{{ author }}/{{ name }}/archive/refs/tags/v{{ version }}.tar.gz
sha256: ca1fa030f41abcd3659e76d7413ce14c551f40d41769e7a000a46f4fea6d0b64
build:
number: 0
script:
- - go install
+ - cd {{ pkg_src }}
+ - go get -v .
+ - go install -v
+ - go test -v
requirements:
build:
