File: development.md

package info (click to toggle)
direnv 2.37.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 872 kB
  • sloc: sh: 1,499; csh: 83; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Development

Setup a go environment https://golang.org/doc/install

> go >= 1.24 is required

Clone the project:

    $ git clone git@github.com:direnv/direnv.git

Build by just typing make:

    $ cd direnv
    $ make

Test the projects:

    $ make test

To install to /usr/local:

    $ make install

Or to a different location like `~/.local`:

    $ make install PREFIX=~/.local

## Updating gomod2nix.toml

Execute `./script/update-gomod2nix`; if you don't have nix locally, can
do so via a docker container like so:

    $ docker run -it --platform linux/amd64 -v $(pwd):/workdir nixos/nix /bin/sh -c "cd workdir && ./script/update-gomod2nix"