Commit Graph

171 Commits

Author SHA1 Message Date
p4u1 01bff82843 change module location 2023-11-30 11:05:09 +01:00
p4u1 e396573785 add basic implementation of modifiers 2023-11-30 10:58:50 +01:00
dependabot[bot] e3b6eee84d
Bump actions/setup-go from 3 to 4 (#207)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-08 12:40:39 +10:00
Chris Jones 193c9aba29
Add whitespace tests. (#210) 2023-04-20 10:52:14 +10:00
John Barton 3fc4292b58
Fix bug where internal unquoted whitespace truncates values (#205)
* Add tests to cover the regression reported in #204

* Add a comment on regex for clarity

* Remove some old code that wasn't doing anything

* Push _all_ parse code into the parser and get tests calling live code

* Add some newline specific tests

* Add some YAML tests for the newline/space split bug

* Fix incorrect terminating of lines on whitespace

* Fix most of the parser regressions

* Bring back FOO.BAR names

* remove some commented out code
2023-02-06 08:47:38 +11:00
Rakibul Yeasin b311b2657d
Fix: ioutil.ReadAll() is deprecated, so removed it's dependency (#202) 2023-02-04 11:10:05 +11:00
2tef 4321598b05
add overload flag (#200)
* add -o flag

increases compatibility with the ruby command

* update README
2023-02-04 11:00:21 +11:00
2tef 32a3b9b960
fix whitespace with gofmt (#203) 2023-02-04 10:58:06 +11:00
John Barton 06bf2d6190
Update CI to test go 1.20 (#201) 2023-02-02 12:05:32 +11:00
John Barton cc9e9b7de7
Multiline string support (#156)
* refactor dotenv parser in order to support multi-line variable values declaration

Signed-off-by: x1unix <denis0051@gmail.com>

* Add multi-line var values test case and update comment test

Signed-off-by: x1unix <denis0051@gmail.com>

* Expand fixture tests to include multiline strings

* Update go versions to test against

* Switch to GOINSECURE for power8 CI task

* When tests fail, show source version of string (inc special chars)

* Update parser.go

Co-authored-by: Austin Sasko <austintyler0239@yahoo.com>

* Fix up bad merge

* Add a full fixture for comments for extra piece of mind

* Fix up some lint/staticcheck recommendations

* Test against go 1.19 too

Signed-off-by: x1unix <denis0051@gmail.com>
Co-authored-by: x1unix <denis0051@gmail.com>
Co-authored-by: Austin Sasko <austintyler0239@yahoo.com>
2023-01-27 13:14:16 +11:00
2tef 0f21d20acb
fix tiny details (#199)
* remove empty line

* remove unnecessary assignments

following commit 2ed25fcb28.
2023-01-27 13:01:43 +11:00
John Barton 5c76d3e02c
Add punctuation to please godoc (#197)
Fixes issue reported over at https://github.com/golang/go/issues/55888
2022-10-30 12:38:35 +11:00
Doarakko 85a2237126
sort go import in readme (#193) 2022-09-12 16:55:41 +10:00
John Barton add39c6f94 Remove power8 again as it wasn't fixed 2022-06-12 15:47:52 +12:00
John Barton 1b6c7eb7cc README updates around contributing 2022-06-12 15:47:37 +12:00
Elliot Murphy b898a8b0d1
Add darwin arm64 build (#174)
* Add darwin arm64 build

Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>

* update url for go version

Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>

Co-authored-by: John Barton <jb@johnbarton.co>
2022-06-12 15:43:35 +12:00
dependabot[bot] 60df7dd66c
Bump actions/setup-go from 2 to 3 (#185)
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-12 15:40:02 +12:00
dependabot[bot] aa20cd96bb
Bump actions/checkout from 2 to 3 (#184)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [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/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-12 15:16:09 +12:00
John Barton a904479007
Create codeql-analysis.yml (#186) 2022-06-12 15:09:09 +12:00
John Barton a582f0c9d3
Remove renovate, add dependabot (#183) 2022-06-12 15:04:14 +12:00
Bahtiyar Biksayev 26b87a7e2c
Update README for go install post go 1.17 (#170)
* tune README

* tune
2022-06-12 14:06:04 +12:00
John Barton 76d246ae25 Add a few new go versions 2022-06-12 13:57:20 +12:00
John Barton 139777a9ff remove power8 tests as they stopped working 2022-06-12 13:56:53 +12:00
Oleksandr Redko e74c6cadd5
Fix typos in comments and extend README (#177) 2022-04-25 14:35:55 +10:00
John Barton c40e9c6392
Fix CI for power8 arch (#157) 2021-09-24 21:38:50 +10:00
Alexander Klein ddf83eb33b
Add missing newline to created env files (#133) 2021-03-04 20:35:31 +11:00
renovate[bot] f562099a43
Add renovate.json (#124)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-11-11 15:36:58 +11:00
John Barton c49ef66cd3 Fix release name 2020-11-11 15:35:55 +11:00
John Barton c142d16052 Try a different github action 2020-11-11 15:30:39 +11:00
John Barton 4e2d182c9a
Add action to publish binaries on each release (#125) 2020-11-11 15:15:18 +11:00
John Barton 65218afbaa
Add a go.mod file (#123) 2020-11-11 14:54:56 +11:00
John Barton aa035a1808
Non amd tests (#122)
* Add non-amd64 tests

* Try shifting env around

* Update input to match action

* Include git

* Comment out IBM Z for now and quieten apt-get
2020-11-11 12:54:49 +11:00
John Barton 23296b91aa
Merge pull request #121 from joho/github-actions
Setup GitHub actions for CI
2020-11-11 11:33:11 +11:00
John Barton e57c08db27 Add CI badge to readme 2020-11-11 11:31:34 +11:00
John Barton 573e9186b2 Matrix test across mac/win/linux 2020-11-11 11:24:40 +11:00
John Barton 5451d82b77 Add Barebones github actions test 2020-11-11 11:19:52 +11:00
John Barton 0da8ce72f0
Merge pull request #115 from adombeck/master
Fix typo
2020-11-08 12:01:29 +11:00
John Barton 3e4069b9b2
Merge pull request #109 from mniak/pr
Write ints without quotes
2020-11-08 11:58:27 +11:00
John Barton a4d9cf1d6d
Merge pull request #120 from santosh653/master
PR_AddingPowerSupport_golang-github-joho-godotenv
2020-10-16 06:51:22 +11:00
santosh653 7fbe752d59
Update .travis.yml
adding power support.
2020-10-15 02:09:51 -04:00
santosh653 46ee0dcae8
Update .travis.yml
Adding arch: amd64
2020-10-15 00:58:50 -04:00
adombeck bc7d5cd181
Fix typo 2020-09-04 23:35:59 +02:00
Andre Soares 6e653f9adf add newline back 2020-06-26 15:39:50 -03:00
Andre Soares fccdfd265d Fix package name 2020-06-26 15:39:06 -03:00
Andre Soares f4e7418908 Remove go.mod 2020-06-26 15:36:35 -03:00
Andre Soares 63ea8bf09b Change package name back to joho/godotenv 2020-06-26 15:35:47 -03:00
Andre Soares 29b5be9cdc Rename and implement int-able without quotes 2020-06-26 15:22:04 -03:00
John Barton d6ee6871f2
Merge pull request #95 from orxobo/Write-adjustment
Fixed Write bugs
2020-03-02 07:46:15 +11:00
orxobo dbcf4b53b8
Fixed Write bugs
This should address a fix #93 and #94
This has not been addressed in any tests.
2020-02-11 17:05:34 +10:00
John Barton b09de681dc
Merge pull request #90 from djherbis/master
#89 move regexp.MustCompile to globals
2019-10-21 07:25:22 +11:00