After cloning this repository, set up the pre-commit hook to ensure proper formatting of the Go code:
ln -s ../../git-hooks/pre-commit .git/hooks/pre-commitWhen developing, you can build a local version of the gocsv binary via running make. This will create a newly compiled gocsv binary in bin/.
To release an update to gocsv, make sure you have committed and pushed the most recent commit on master. Then:
-
Tag the latest commit as "latest":
make tag
-
Create binaries for distribution:
make dist
This will create zip files in the
distdirectory holding thegocsvbinaries for Linux, Unix, and Windows. -
Upload the newly created distribution binaries to the Latest Release page. You will need to edit the release, remove the existing zip files, and upload the recently created zip files in
dist/.