Commit graph

258 commits

Author SHA1 Message Date
Jörg Thalheim
2f6441df9c bump gomod2nix 2023-11-14 08:29:50 +00:00
dependabot[bot]
b6c1995b8a build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.8.0
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.4.0 to 1.8.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.4.0...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-14 08:29:50 +00:00
Jörg Thalheim
140f97b8b0 bump gomod2nix 2023-11-14 08:27:18 +00:00
dependabot[bot]
f733955aae build(deps): bump github.com/BurntSushi/toml from 1.1.0 to 1.3.2
Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.1.0 to 1.3.2.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](https://github.com/BurntSushi/toml/compare/v1.1.0...v1.3.2)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-14 08:27:18 +00:00
Jörg Thalheim
ac736456e4
Merge pull request #139 from nix-community/dependabot/go_modules/golang.org/x/tools-0.15.0
build(deps): bump golang.org/x/tools from 0.0.0-20210106214847-113979e3529a to 0.15.0
2023-11-14 09:22:05 +01:00
Jörg Thalheim
773487d439 skip build on ci branches 2023-11-14 09:19:31 +01:00
Jörg Thalheim
b2e19fe486 add mergify 2023-11-14 09:18:28 +01:00
Jörg Thalheim
9bba29f116 silence deprecated package warning 2023-11-14 09:17:40 +01:00
Jörg Thalheim
415e2814aa update gomod2nix 2023-11-14 09:13:26 +01:00
Jörg Thalheim
1633dc0c79
Merge pull request #116 from doronbehar/exposeVendor
Expose mkVendorEnv
2023-11-14 09:05:47 +01:00
Jörg Thalheim
a2ce974cf4
Merge pull request #133 from ldicarlo/patch-1
Fix: flake template start
2023-11-14 09:05:20 +01:00
Jörg Thalheim
386824f22d
Merge pull request #128 from nix-community/dependabot/github_actions/cachix/install-nix-action-23
build(deps): bump cachix/install-nix-action from 17 to 23
2023-11-14 09:04:43 +01:00
dependabot[bot]
02ec6c1101
build(deps): bump cachix/install-nix-action from 17 to 23
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 23.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v23)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-14 07:42:56 +00:00
Jörg Thalheim
8e4fc84b84
Merge pull request #126 from nix-community/dependabot/github_actions/actions/checkout-4
build(deps): bump actions/checkout from 3 to 4
2023-11-14 08:42:20 +01:00
Jörg Thalheim
b7d333c7b5
Merge pull request #132 from zuqq/fix-nix-develop
Call `templates/app/shell.nix` without `buildGoApplication`
2023-11-14 08:41:53 +01:00
dependabot[bot]
6cb0b31f9f
build(deps): bump golang.org/x/tools
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.0.0-20210106214847-113979e3529a to 0.15.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/commits/v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 10:16:40 +00:00
Luca Di Carlo
83742a8bad
Fix: flake template start
This is the only way I found to make the project run using flakes
2023-09-24 20:24:00 +02:00
zuqq
23c5e85dad Call templates/app/shell.nix without buildGoApplication 2023-09-23 22:13:09 +01:00
dependabot[bot]
765bd77a27
build(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-13 14:42:30 +00:00
Jörg Thalheim
f95720e89a
Merge pull request #124 from nix-community/revise-interface
Expose flake interface that does not rely on overlays
2023-09-13 16:42:04 +02:00
Jörg Thalheim
5a337a0def add dependabot 2023-09-13 08:46:55 +02:00
Jörg Thalheim
495a010f5e use flake-utils input and also override it in the template 2023-09-13 08:44:51 +02:00
Jörg Thalheim
f6cddc0ed8 update the reason why we have to use a newer sdk for macOS 2023-09-13 08:25:30 +02:00
Jörg Thalheim
c3d7cbf19a docs: update flake url 2023-09-13 08:24:13 +02:00
Jörg Thalheim
cf42f710c1 expose flake interface that does not rely on overlays
As creator of small tools, my flakes might often end up in other peoples
projects. Overlays are a performance problem in those use cases because
I would kept re-instantiating nixpkgs instances. Of course I could also
expose my stuff as overlays as well.

In that case I would need to merge downstream dependencies like
go2modnix as well, which would polute their nixpkgs instance with
unrelated stuff and also make it harder for my users to tell what random
attributes came from which place.
2023-09-13 08:24:13 +02:00
Doron Behar
9c8f8ed898 Expose mkVendorEnv 2023-04-12 12:50:58 +03:00
adisbladis
3cbf3a51fe
Merge pull request #96 from martinbaillie/master
Parameterise `tools.go`
2023-02-27 13:54:07 +13:00
adisbladis
1f15df645a
Merge pull request #107 from yihuang/master
fix cross compiling
2023-02-27 13:53:08 +13:00
HuangYi
23aaa89f10
we actually support more platforms than go.meta.platforms because of cross-compiling 2023-02-15 16:51:18 +08:00
HuangYi
72890726f3
fix cross compiling
select go compiler in `buildPackages` instead of `pkgs`
2023-02-15 14:32:05 +08:00
Martin Baillie
29f6eb7bd5
Parameterise modules file in mkGoEnv
This makes `mkGoEnv` more similar to `buildGoApplication`.

Signed-off-by: Martin Baillie <martin@baillie.id>
2022-09-26 19:58:36 +10:00
Martin Baillie
d9ea49c898
Parameterise tools.go
Signed-off-by: Martin Baillie <martin@baillie.id>
2022-09-13 10:17:46 +10:00
adisbladis
89cd0675b9
Merge pull request #94 from nix-community/rsync-vendor
builder: Use rsync for copying vendor environment
2022-09-07 09:53:23 +12:00
adisbladis
3b4076283d builder: Use rsync for copying vendor environment
cp will fail on dangling symlinks and it's errors can't be ignored.
rsync gives us a greater degree of control so let's use that.
2022-09-07 09:44:36 +12:00
adisbladis
cc75990c60 Update tweag reference to nix-community in docs 2022-09-02 17:14:14 +12:00
adisbladis
d4eb034312 Update tweag reference to nix-community in flake template 2022-09-02 17:13:35 +12:00
adisbladis
b5bb2405a9
Merge pull request #90 from nix-community/gomod-parser-comments
Litter go.mod parser with comments
2022-09-02 17:06:18 +12:00
adisbladis
01426762a5 Litter go.mod parser with comments 2022-09-02 17:02:56 +12:00
adisbladis
b7508fbe45
Merge pull request #89 from nix-community/no-copy-src-follow-sym
Nixpkgs integration nits
2022-09-02 16:50:10 +12:00
adisbladis
82718bac0b Don't needlessly copy internal sources in builder 2022-09-02 16:46:05 +12:00
adisbladis
32ba72372b Follow symlinks when copying vendor environment 2022-09-02 16:46:05 +12:00
adisbladis
37752fe423
Merge pull request #88 from nix-community/max-go-version-select
Use the highest compatible Go version whenever possible
2022-09-02 16:41:13 +12:00
adisbladis
36f0c54655 Use the highest compatible Go version whenever possible
It should be generally safe to compile any older Go project with a
newer compiler and in the few cases where it isn't it could be
manually passed.
2022-09-02 16:38:03 +12:00
adisbladis
6c4e4b7f57 Change stripVersion comment to indicate that it's not rubbish
But just extra data that Nix can't handle in version attributes.
2022-09-02 16:35:58 +12:00
adisbladis
9f06fea972
Merge pull request #87 from nix-community/remove-generic-expr
Remove generic builder expression
2022-09-02 16:24:08 +12:00
adisbladis
a5fabc015d builder: Don't use a default go argument internally 2022-09-02 16:18:41 +12:00
adisbladis
8525f7f0e5 Remove generic builder expression
This was an attempt to get maximal sharing with Nixpkgs but in hindsight it's better to just have some code duplication.
2022-09-02 16:14:39 +12:00
adisbladis
a02a4ea0b2 builder: Remove unused removeExpr variable 2022-09-02 16:11:43 +12:00
adisbladis
4620c777ae
Merge pull request #86 from nix-community/symlink-indent-dehadouken
Symlink indent dehadouken
2022-09-02 16:04:23 +12:00
adisbladis
9b360feaf2 builder/symlink: Factor out into separate functions to make indents more readable
Implement suggestion from https://github.com/NixOS/nixpkgs/pull/188272#discussion_r958608686.
2022-09-02 15:59:32 +12:00