Skip to content

Commit

Permalink
v0.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesfsp committed Feb 15, 2022
1 parent 5d9ab58 commit 3ef1697
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 113 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16

- name: Setup golangci-lint
uses: golangci/[email protected]
with:
version: v1.41.1
version: v1.43.0
args: "--timeout 5m -v -c .golangci.yml"

- name: Lint
run: /home/runner/golangci-lint-1.41.1-linux-amd64/golangci-lint run -v -c .golangci.yml
run: /home/runner/golangci-lint-1.43.0-linux-amd64/golangci-lint run -v -c .golangci.yml

- name: Test
run: make test coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
go-version: 1.16
id: go

- name: Run GoReleaser
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ linters:
- cyclop
- tagliatelle
- goerr113
- varnamelen
fast: false

# Settings for specific linters
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Load config from Config file, and from env vars. Use viper for that
- Automatically alocates a random port, if the specified one is in-use

## [0.1.13] - 2022-02-14
### Changed
- Upgraded PACMan version
- Upgraded golang-ci version (CI pipeline)
- Standardized Go version to 1.16

## [0.1.12] - 2021-11-02
### Changed
- Better error message
Expand Down Expand Up @@ -73,7 +79,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.1.1] - 2021-10-4
### Added
- Integrated PAC (Pacman).
- Integrated PAC (PACMan).
- More tests.
- Added benchmark.

Expand Down
39 changes: 7 additions & 32 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,40 +1,15 @@
module github.com/saucelabs/forwarder

go 1.17

require (
github.com/go-playground/validator/v10 v10.9.0
github.com/spf13/cobra v1.2.1
)
go 1.16

require (
github.com/eapache/go-resiliency v1.2.0
github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4
github.com/elazarl/goproxy/ext v0.0.0-20210801061803-8e322dfb79c4
github.com/go-playground/locales v0.14.0 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/leodido/go-urn v1.2.1 // indirect
github.com/elazarl/goproxy v0.0.0-20220115173737-adb46da277ac
github.com/elazarl/goproxy/ext v0.0.0-20220115173737-adb46da277ac
github.com/go-playground/validator/v10 v10.10.0
github.com/saucelabs/customerror v0.0.2
github.com/saucelabs/pacman v0.0.10
github.com/saucelabs/pacman v0.0.12
github.com/saucelabs/randomness v0.0.4
github.com/saucelabs/sypl v1.5.5
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/sys v0.0.0-20211029165221-6e7872819dc8 // indirect
golang.org/x/text v0.3.7 // indirect
)

require (
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
github.com/dlclark/regexp2 v1.4.1-0.20201116162257-a2a8dda75c91 // indirect
github.com/dop251/goja v0.0.0-20211022113120-dc8c55024d06 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/mattn/go-colorable v0.1.11 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/saucelabs/lumberjack/v3 v3.0.2 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
github.com/saucelabs/sypl v1.5.8
github.com/spf13/cobra v1.3.0
)
291 changes: 231 additions & 60 deletions go.sum

Large diffs are not rendered by default.

16 changes: 1 addition & 15 deletions internal/pac/pac.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,7 @@ func (pP *Parser) Find(url string) (PACProxies, error) {
return pP.pac.FindProxy(url)
}

// New is the Parser factory. It's able to load PAC from many sources:
// - Direct: `source` is the PAC content
// - Remote: `source` is an HTTP/HTTPS URI
// - File: `source` points to a file:
// - As per PAC spec, PAC file should have the `.pac` extension
// - Absolute and relative paths are supported
// - `file://` scheme is supported. It should be an absolute path.
//
// Notes:
// - Optionally, credentials for each/any proxy specified in the PAC content can
// be set (`proxiesURIs`) using standard URI format. These credentials will be
// automatically set when `FindProxy` is called.
// - URI is: scheme://[credential]@host[/path]` where:
// - `credential` is `username:password`, and is optional
// - `host` (also known as `authority`) is `hostname:port`, and is optional.
// New is the Parser factory. It's wraps PACMan.
func New(source string, proxiesURIs ...string) (*Parser, error) {
// Instantiate underlying PAC parser implementation.
//
Expand Down
2 changes: 1 addition & 1 deletion internal/validation/validator_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 The pacman Authors. All rights reserved.
// Copyright 2021 The Forwarder Authors. All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.

Expand Down

0 comments on commit 3ef1697

Please sign in to comment.