Skip to content

Commit

Permalink
update all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenmcdermott committed Nov 2, 2024
1 parent e480766 commit a4e4d1e
Show file tree
Hide file tree
Showing 8 changed files with 486 additions and 119 deletions.
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source_url "https://raw.githubusercontent.com/flox/flox-direnv/v1.1.0/direnv.rc" 'sha256-c2YCane8WGmYeCDc9wIZyVL8AgbdfhPaEoM+5aFuysw='

use flox
4 changes: 4 additions & 0 deletions .flox/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
run/
cache/
lib/
log/
4 changes: 4 additions & 0 deletions .flox/env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "terraform-provider-porkbun",
"version": 1
}
276 changes: 276 additions & 0 deletions .flox/env/manifest.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,276 @@
{
"lockfile-version": 1,
"manifest": {
"version": 1,
"install": {
"direnv": {
"pkg-path": "direnv"
},
"go": {
"pkg-path": "go",
"version": "1.22"
}
},
"hook": {
"on-activate": " # Autogenerated by Flox\n\n # Point GOENV to Flox environment cache\n export GOENV=\"$FLOX_ENV_CACHE/goenv\"\n\n # Install Go dependencies\n go get .\n\n # End autogenerated by Flox\n"
},
"profile": {
"bash": " eval \"$(direnv hook bash)\"\n",
"zsh": " eval \"$(direnv hook zsh)\"\n"
},
"options": {
"systems": [
"aarch64-darwin",
"aarch64-linux",
"x86_64-darwin",
"x86_64-linux"
],
"allow": {
"licenses": []
},
"semver": {}
}
},
"packages": [
{
"attr_path": "direnv",
"broken": false,
"derivation": "/nix/store/0k9pnllqbv5388vdvwk2v92c9abwscnx-direnv-2.35.0.drv",
"description": "Shell extension that manages your environment",
"install_id": "direnv",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "direnv-2.35.0",
"pname": "direnv",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "2.35.0",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/b862impi4vy6hx7irfhnp3y5padbw0jl-direnv-2.35.0"
},
"system": "aarch64-darwin",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "direnv",
"broken": false,
"derivation": "/nix/store/l2r714yib5h88kx9nlkbqypdpjsyy4vz-direnv-2.35.0.drv",
"description": "Shell extension that manages your environment",
"install_id": "direnv",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "direnv-2.35.0",
"pname": "direnv",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "2.35.0",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/z2kgy6bcdn3h0rplawv2nj09hmffknhx-direnv-2.35.0"
},
"system": "aarch64-linux",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "direnv",
"broken": false,
"derivation": "/nix/store/dkxqyskhr3x4v1ag8gblgjh1kpcb8k92-direnv-2.35.0.drv",
"description": "Shell extension that manages your environment",
"install_id": "direnv",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "direnv-2.35.0",
"pname": "direnv",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "2.35.0",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/djl7k7rvngmjr8pbhgmzhccv82hlaxms-direnv-2.35.0"
},
"system": "x86_64-darwin",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "direnv",
"broken": false,
"derivation": "/nix/store/rjm1mfaxgj9r10a919xf2jvxnr1mmapy-direnv-2.35.0.drv",
"description": "Shell extension that manages your environment",
"install_id": "direnv",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "direnv-2.35.0",
"pname": "direnv",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "2.35.0",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/0cc1cyiifsb6g6vr2271448va439q73b-direnv-2.35.0"
},
"system": "x86_64-linux",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "go",
"broken": false,
"derivation": "/nix/store/x1p2gf1jcqn29l4agdqrb0w09rib7w3m-go-1.22.7.drv",
"description": "Go Programming language",
"install_id": "go",
"license": "BSD-3-Clause",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "go-1.22.7",
"pname": "go",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "1.22.7",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/rfcwglhhspqx5v5h0sl4b3py14i6vpxa-go-1.22.7"
},
"system": "aarch64-darwin",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "go",
"broken": false,
"derivation": "/nix/store/qk95aryv3n1mhmk0lxf55sg9yr0l6138-go-1.22.7.drv",
"description": "Go Programming language",
"install_id": "go",
"license": "BSD-3-Clause",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "go-1.22.7",
"pname": "go",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "1.22.7",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/64z59pb0ss407rbv1fcvq0ynngrwfa6k-go-1.22.7"
},
"system": "aarch64-linux",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "go",
"broken": false,
"derivation": "/nix/store/4bjrs6k4a0xjyy5zanbc8igv0cffsi0a-go-1.22.7.drv",
"description": "Go Programming language",
"install_id": "go",
"license": "BSD-3-Clause",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "go-1.22.7",
"pname": "go",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "1.22.7",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/r8199g59rmp6ac0lnx86fpk57fbxc3bk-go-1.22.7"
},
"system": "x86_64-darwin",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "go",
"broken": false,
"derivation": "/nix/store/gp0ma9f4n4nxmgbgl1g65kvlf05cl22y-go-1.22.7.drv",
"description": "Go Programming language",
"install_id": "go",
"license": "BSD-3-Clause",
"locked_url": "https://github.com/flox/nixpkgs?rev=5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"name": "go-1.22.7",
"pname": "go",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
"rev_count": 690827,
"rev_date": "2024-10-09T16:51:18Z",
"scrape_date": "2024-10-11T03:53:01Z",
"stabilities": [
"staging",
"unstable"
],
"unfree": false,
"version": "1.22.7",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/chzgk756zb2cqlzbjr86m0lfxi63cdfy-go-1.22.7"
},
"system": "x86_64-linux",
"group": "toplevel",
"priority": 5
}
]
}
66 changes: 66 additions & 0 deletions .flox/env/manifest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# This is a Flox environment manifest.
# Visit flox.dev/docs/concepts/manifest/
# or see flox-edit(1), manifest.toml(5) for more information.
#
# Flox manifest version managed by Flox CLI
version = 1

# List packages you wish to install in your environment inside
# the `[install]` section.
[install]
go = { pkg-path = "go", version = "1.22" }
direnv.pkg-path = "direnv"

# Set environment variables in the `[vars]` section. These variables may not
# reference one another, and are added to the environment without first
# expanding them. They are available for use in the `[profile]` and `[hook]`
# scripts.
[vars]
# message = "Howdy"

# The `hook.on-activate` script is run by the *bash* shell immediately upon
# activating an environment, and will not be invoked if Flox detects that the
# environment has previously been activated. Variables set by the script will
# be inherited by `[profile]` scripts defined below. Note that any stdout
# generated by the script will be redirected to stderr.

[profile]
zsh = """
eval "$(direnv hook zsh)"
"""
bash = """
eval "$(direnv hook bash)"
"""
[hook]

on-activate = '''
# Autogenerated by Flox
# Point GOENV to Flox environment cache
export GOENV="$FLOX_ENV_CACHE/goenv"
# Install Go dependencies
go get .
# End autogenerated by Flox
'''

# Scripts defined in the `[profile]` section are *sourced* by *your shell* and
# inherit environment variables set in the `[vars]` section and by `[hook]` scripts.
# The `profile.common` script is sourced by all shells and special care should be
# taken to ensure compatibility with all shells, after which exactly one of
# `profile.{bash,fish,tcsh,zsh}` is sourced by the corresponding shell.

# The `[services]` section of the manifest allows you to define services.
# Services defined here use the packages provided by the `[install]` section
# and any variables you've defined in the `[vars]` section or `hook.on-activate` script.
[services]
# postgres.command = "postgres --config-file=pg.conf"

# Additional options can be set in the `[options]` section. Refer to
# manifest.toml(5) for a list of available options.
[options]
systems = ["aarch64-darwin", "aarch64-linux", "x86_64-darwin", "x86_64-linux"]
# Uncomment to disable CUDA detection.
# cuda-detection = false
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ jobs:
max-parallel: 2
matrix:
terraform:
- '1.4.*'
- '1.5.*'
- '1.6.*'
- '1.7.*'
- '1.8.*'
- '1.9.*'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
Expand Down
Loading

0 comments on commit a4e4d1e

Please sign in to comment.