diff --git a/.gen/proto/gogo.pb.go b/.gen/proto/gogo.pb.go index 25d83202262..30b2b3179ab 100644 --- a/.gen/proto/gogo.pb.go +++ b/.gen/proto/gogo.pb.go @@ -1,25 +1,3 @@ -// The MIT License (MIT) -// -// Copyright (c) 2017-2020 Uber Technologies Inc. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - // Protocol Buffers for Go with Gadgets // // Copyright (c) 2013, The GoGo Authors. All rights reserved. diff --git a/.gen/proto/message.pb.go b/.gen/proto/message.pb.go index 3dec352a6ab..bb0ea1301ca 100644 --- a/.gen/proto/message.pb.go +++ b/.gen/proto/message.pb.go @@ -1,7 +1,7 @@ -// The MIT License (MIT) -// -// Copyright (c) 2017-2020 Uber Technologies Inc. -// +// Modifications Copyright (c) 2020 Uber Technologies Inc. + +// Copyright (c) 2020 Temporal Technologies, Inc. + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights diff --git a/LICENSE b/LICENSE index dbbb8fa0262..969d061e8ba 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,3 @@ -The MIT License (MIT) - -Copyright (c) 2017-2020 Uber Technologies Inc. - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights diff --git a/Makefile b/Makefile index addcb30e072..1c850522dff 100644 --- a/Makefile +++ b/Makefile @@ -145,12 +145,16 @@ cadence-canary: $(ALL_SRC) @echo "compiling cadence-canary with OS: $(GOOS), ARCH: $(GOARCH)" go build -o cadence-canary cmd/canary/main.go +go-generate-format: go-generate fmt + go-generate: GO111MODULE=off go get -u github.com/myitcv/gobin GOOS= GOARCH= gobin -mod=readonly github.com/golang/mock/mockgen GOOS= GOARCH= gobin -mod=readonly github.com/dmarkham/enumer @echo "running go generate ./..." @go generate ./... + @echo "running go run cmd/tools/copyright/licensegen.go" + @go run cmd/tools/copyright/licensegen.go lint: @echo "running linter" diff --git a/client/clientBean.go b/client/clientBean.go index 0e217e91d25..30a4f8caefe 100644 --- a/client/clientBean.go +++ b/client/clientBean.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../LICENSE -package $GOPACKAGE -source $GOFILE -destination clientBean_mock.go -self_package github.com/uber/cadence/client +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination clientBean_mock.go -self_package github.com/uber/cadence/client package client diff --git a/client/clientBean_mock.go b/client/clientBean_mock.go index a6f1f16e8d6..86dcf4cd278 100644 --- a/client/clientBean_mock.go +++ b/client/clientBean_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: clientBean.go diff --git a/cmd/tools/copyright/licensegen.go b/cmd/tools/copyright/licensegen.go index 9a7c8e375e3..0e586eee9af 100644 --- a/cmd/tools/copyright/licensegen.go +++ b/cmd/tools/copyright/licensegen.go @@ -22,6 +22,7 @@ package main import ( "bufio" + "errors" "flag" "fmt" "io/ioutil" @@ -40,8 +41,11 @@ type ( // command line config params config struct { - rootDir string - verifyOnly bool + rootDir string + verifyOnly bool + temporalAddMode bool + temporalModifyMode bool + filePaths string } ) @@ -49,8 +53,14 @@ type ( const licenseFileName = "LICENSE" // unique prefix that identifies a license header -const licenseHeaderPrefixOld = "// Copyright (c)" +const licenseHeaderPrefixOld = "Copyright (c)" const licenseHeaderPrefix = "// The MIT License (MIT)" +const cadenceCopyright = "// Copyright (c) 2017-2020 Uber Technologies Inc." +const cadenceModificationHeader = "// Modifications Copyright (c) 2020 Uber Technologies Inc." +const temporalCopyright = "// Copyright (c) 2020 Temporal Technologies, Inc." +const temporalPartialCopyright = "// Portions of the Software are attributed to Copyright (c) 2020 Temporal Technologies Inc." + +const firstLinesToCheck = 10 var ( // directories to be excluded @@ -69,8 +79,16 @@ func main() { flag.StringVar(&cfg.rootDir, "rootDir", ".", "project root directory") flag.BoolVar(&cfg.verifyOnly, "verifyOnly", false, "don't automatically add headers, just verify all files") + flag.BoolVar(&cfg.temporalAddMode, "temporalAddMode", false, "add copyright for new file copied from temporal") + flag.BoolVar(&cfg.temporalModifyMode, "temporalModifyMode", false, "add copyright for existing file which has parts copied from temporal") + flag.StringVar(&cfg.filePaths, "filePaths", "", "comma separated list of files to run temporal license on") flag.Parse() + if err := verifyCfg(cfg); err != nil { + fmt.Println(err) + os.Exit(-1) + } + task := newAddLicenseHeaderTask(&cfg) if err := task.run(); err != nil { fmt.Println(err) @@ -78,6 +96,21 @@ func main() { } } +func verifyCfg(cfg config) error { + if cfg.verifyOnly { + if cfg.temporalModifyMode || cfg.temporalAddMode { + return errors.New("invalid config, can only specify one of temporalAddMode, temporalModifyMode or verifyOnly") + } + } + if cfg.temporalAddMode && cfg.temporalModifyMode { + return errors.New("invalid config, can only specify temporalAddMode or temporalModifyMode") + } + if (cfg.temporalModifyMode || cfg.temporalAddMode) && len(cfg.filePaths) == 0 { + return errors.New("invalid config, when running in temporalAddMode or temporalModifyMode must provide filePaths") + } + return nil +} + func newAddLicenseHeaderTask(cfg *config) *addLicenseHeaderTask { return &addLicenseHeaderTask{ config: cfg, @@ -89,12 +122,28 @@ func (task *addLicenseHeaderTask) run() error { if err != nil { return fmt.Errorf("error reading license file, errr=%v", err.Error()) } - task.license, err = commentOutLines(string(data)) if err != nil { return fmt.Errorf("copyright header failed to comment out lines, err=%v", err.Error()) } - + if task.config.temporalAddMode { + task.license = fmt.Sprintf("%v\n\n%v\n\n%v", cadenceModificationHeader, temporalCopyright, task.license) + } else if task.config.temporalModifyMode { + task.license = fmt.Sprintf("%v\n\n%v\n\n%v", cadenceCopyright, temporalPartialCopyright, task.license) + } + if task.config.temporalModifyMode || task.config.temporalAddMode { + filePaths, fileInfos, err := getFilePaths(task.config.filePaths) + if err != nil { + return err + } + for i := 0; i < len(filePaths); i++ { + if err := task.handleFile(filePaths[i], fileInfos[i], nil); err != nil { + return err + } + } + return nil + } + task.license = fmt.Sprintf("%v\n\n%v\n\n%v", licenseHeaderPrefix, cadenceCopyright, task.license) err = filepath.Walk(task.config.rootDir, task.handleFile) if err != nil { return fmt.Errorf("copyright header check failed, err=%v", err.Error()) @@ -120,7 +169,7 @@ func (task *addLicenseHeaderTask) handleFile(path string, fileInfo os.FileInfo, return nil } - if !strings.HasSuffix(fileInfo.Name(), ".go") { + if !strings.HasSuffix(fileInfo.Name(), ".go") && !strings.HasSuffix(fileInfo.Name(), ".proto") { return nil } @@ -131,19 +180,20 @@ func (task *addLicenseHeaderTask) handleFile(path string, fileInfo os.FileInfo, return err } - scanner := bufio.NewScanner(f) - readLineSucc := scanner.Scan() - if !readLineSucc { - return fmt.Errorf("fail to read first line of file %v", path) + ok, err := hasCopyright(f) + if err != nil { + return err } - firstLine := strings.TrimSpace(scanner.Text()) - if err := scanner.Err(); err != nil { + + if err := f.Close(); err != nil { return err } - f.Close() - if strings.Contains(firstLine, licenseHeaderPrefixOld) || strings.Contains(firstLine, licenseHeaderPrefix) { - return nil // file already has the copyright header + if ok { + if task.config.temporalModifyMode || task.config.temporalAddMode { + return fmt.Errorf("when running in temporalModifyMode or temporalAddMode please first remove existing license header: %v", path) + } + return nil } // at this point, src file is missing the header @@ -163,6 +213,27 @@ func (task *addLicenseHeaderTask) handleFile(path string, fileInfo os.FileInfo, return ioutil.WriteFile(path, []byte(task.license+string(data)), defaultFilePerms) } +func hasCopyright(f *os.File) (bool, error) { + scanner := bufio.NewScanner(f) + lineSuccess := scanner.Scan() + if !lineSuccess { + return false, fmt.Errorf("fail to read first line of file %v", f.Name()) + } + i := 0 + for i < firstLinesToCheck && lineSuccess { + i++ + line := strings.TrimSpace(scanner.Text()) + if err := scanner.Err(); err != nil { + return false, err + } + if lineHasCopyright(line) { + return true, nil + } + lineSuccess = scanner.Scan() + } + return false, nil +} + func isFileAutogenerated(path string) bool { return strings.HasPrefix(path, ".gen") } @@ -189,3 +260,21 @@ func commentOutLines(str string) (string, error) { } return strings.Join(lines, ""), nil } + +func lineHasCopyright(line string) bool { + return strings.Contains(line, licenseHeaderPrefixOld) || + strings.Contains(line, licenseHeaderPrefix) +} + +func getFilePaths(filePaths string) ([]string, []os.FileInfo, error) { + paths := strings.Split(filePaths, ",") + var fileInfos []os.FileInfo + for _, p := range paths { + fileInfo, err := os.Stat(p) + if err != nil { + return nil, nil, err + } + fileInfos = append(fileInfos, fileInfo) + } + return paths, fileInfos, nil +} diff --git a/common/archiver/filestore/queryParser.go b/common/archiver/filestore/queryParser.go index 457232b76cd..06878cd52c3 100644 --- a/common/archiver/filestore/queryParser.go +++ b/common/archiver/filestore/queryParser.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source queryParser.go -destination queryParser_mock.go -mock_names Interface=MockQueryParser +//go:generate mockgen -package $GOPACKAGE -source queryParser.go -destination queryParser_mock.go -mock_names Interface=MockQueryParser package filestore diff --git a/common/archiver/filestore/queryParser_mock.go b/common/archiver/filestore/queryParser_mock.go index bda2686607d..271e13f4816 100644 --- a/common/archiver/filestore/queryParser_mock.go +++ b/common/archiver/filestore/queryParser_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: queryParser.go diff --git a/common/archiver/gcloud/queryParser.go b/common/archiver/gcloud/queryParser.go index defb2d1fd17..52349c25bf9 100644 --- a/common/archiver/gcloud/queryParser.go +++ b/common/archiver/gcloud/queryParser.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source queryParser.go -destination queryParser_mock.go -mock_names Interface=MockQueryParser +//go:generate mockgen -package $GOPACKAGE -source queryParser.go -destination queryParser_mock.go -mock_names Interface=MockQueryParser package gcloud diff --git a/common/archiver/gcloud/queryParser_mock.go b/common/archiver/gcloud/queryParser_mock.go index b141b1c62eb..69a09b467a9 100644 --- a/common/archiver/gcloud/queryParser_mock.go +++ b/common/archiver/gcloud/queryParser_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: queryParser.go diff --git a/common/archiver/historyIterator.go b/common/archiver/historyIterator.go index f4dc79aab1e..daecaccd110 100644 --- a/common/archiver/historyIterator.go +++ b/common/archiver/historyIterator.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination historyIterator_mock.go -self_package github.com/uber/cadence/common/archiver +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination historyIterator_mock.go -self_package github.com/uber/cadence/common/archiver package archiver diff --git a/common/archiver/historyIterator_mock.go b/common/archiver/historyIterator_mock.go index c32416f4e50..4faa505339e 100644 --- a/common/archiver/historyIterator_mock.go +++ b/common/archiver/historyIterator_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: historyIterator.go diff --git a/common/archiver/s3store/queryParser.go b/common/archiver/s3store/queryParser.go index da58817e3f4..e9c922a0640 100644 --- a/common/archiver/s3store/queryParser.go +++ b/common/archiver/s3store/queryParser.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source queryParser.go -destination queryParser_mock.go -mock_names Interface=MockQueryParser +//go:generate mockgen -package $GOPACKAGE -source queryParser.go -destination queryParser_mock.go -mock_names Interface=MockQueryParser package s3store diff --git a/common/archiver/s3store/queryParser_mock.go b/common/archiver/s3store/queryParser_mock.go index 967f46a71eb..772280325cc 100644 --- a/common/archiver/s3store/queryParser_mock.go +++ b/common/archiver/s3store/queryParser_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: queryParser.go diff --git a/common/authorization/authority_mock.go b/common/authorization/authority_mock.go index a1fc5474bce..6fe176dc951 100644 --- a/common/authorization/authority_mock.go +++ b/common/authorization/authority_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: authorizer.go diff --git a/common/authorization/authorizer.go b/common/authorization/authorizer.go index b60d9a8e51f..e9da801e957 100644 --- a/common/authorization/authorizer.go +++ b/common/authorization/authorizer.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination authority_mock.go -self_package github.com/uber/cadence/common/authorization +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination authority_mock.go -self_package github.com/uber/cadence/common/authorization package authorization diff --git a/common/cache/domainCache.go b/common/cache/domainCache.go index 1d92df3949f..74a2358a8aa 100644 --- a/common/cache/domainCache.go +++ b/common/cache/domainCache.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination domainCache_mock.go -self_package github.com/uber/cadence/common/cache +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination domainCache_mock.go -self_package github.com/uber/cadence/common/cache package cache diff --git a/common/cache/domainCache_mock.go b/common/cache/domainCache_mock.go index 6420719bb45..55fad2e5dc4 100644 --- a/common/cache/domainCache_mock.go +++ b/common/cache/domainCache_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: domainCache.go diff --git a/common/cluster/metadata.go b/common/cluster/metadata.go index a5925d2b65e..abceca75db6 100644 --- a/common/cluster/metadata.go +++ b/common/cluster/metadata.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination metadata_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination metadata_mock.go package cluster diff --git a/common/cluster/metadata_mock.go b/common/cluster/metadata_mock.go index 2980f6c8a06..25546a6268a 100644 --- a/common/cluster/metadata_mock.go +++ b/common/cluster/metadata_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: metadata.go diff --git a/common/domain/dlqMessageHandler.go b/common/domain/dlqMessageHandler.go index ff618f6bd62..08e0f7a2653 100644 --- a/common/domain/dlqMessageHandler.go +++ b/common/domain/dlqMessageHandler.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination dlqMessageHandler_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination dlqMessageHandler_mock.go package domain diff --git a/common/domain/dlqMessageHandler_mock.go b/common/domain/dlqMessageHandler_mock.go index 087bc7fa4fe..6db333841b6 100644 --- a/common/domain/dlqMessageHandler_mock.go +++ b/common/domain/dlqMessageHandler_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: dlqMessageHandler.go diff --git a/common/domain/failover_watcher.go b/common/domain/failover_watcher.go index a598cf29727..a4b14c6a6be 100644 --- a/common/domain/failover_watcher.go +++ b/common/domain/failover_watcher.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination failover_watcher_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination failover_watcher_mock.go package domain diff --git a/common/domain/failover_watcher_mock.go b/common/domain/failover_watcher_mock.go index 593a2ef8190..bbf7b7a24d5 100644 --- a/common/domain/failover_watcher_mock.go +++ b/common/domain/failover_watcher_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: failover_watcher.go diff --git a/common/domain/handler.go b/common/domain/handler.go index 23d7414cebe..63cffa47707 100644 --- a/common/domain/handler.go +++ b/common/domain/handler.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination handler_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination handler_mock.go package domain diff --git a/common/domain/handler_mock.go b/common/domain/handler_mock.go index 1a8ba49162c..8891b9ef4d3 100644 --- a/common/domain/handler_mock.go +++ b/common/domain/handler_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: handler.go diff --git a/common/domain/replicationTaskExecutor.go b/common/domain/replicationTaskExecutor.go index 116dc7e0478..814a02ac0c7 100644 --- a/common/domain/replicationTaskExecutor.go +++ b/common/domain/replicationTaskExecutor.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination replicationTaskHandler_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination replicationTaskHandler_mock.go package domain diff --git a/common/domain/replicationTaskHandler_mock.go b/common/domain/replicationTaskHandler_mock.go index 56eb276acf7..bca976252f1 100644 --- a/common/domain/replicationTaskHandler_mock.go +++ b/common/domain/replicationTaskHandler_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: replicationTaskExecutor.go diff --git a/common/membership/interfaces.go b/common/membership/interfaces.go index 7cdf2a5e0d7..eb26e26f52d 100644 --- a/common/membership/interfaces.go +++ b/common/membership/interfaces.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination interfaces_mock.go -self_package github.com/uber/cadence/common/membership +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination interfaces_mock.go -self_package github.com/uber/cadence/common/membership package membership diff --git a/common/membership/interfaces_mock.go b/common/membership/interfaces_mock.go index 92f779f9926..3462a3d7f09 100644 --- a/common/membership/interfaces_mock.go +++ b/common/membership/interfaces_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: interfaces.go diff --git a/common/ndc/history_resender.go b/common/ndc/history_resender.go index 38e0b0ba14a..62e5481ffb0 100644 --- a/common/ndc/history_resender.go +++ b/common/ndc/history_resender.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination history_resender_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination history_resender_mock.go package ndc diff --git a/common/ndc/history_resender_mock.go b/common/ndc/history_resender_mock.go index a443a809593..a68a737e42d 100644 --- a/common/ndc/history_resender_mock.go +++ b/common/ndc/history_resender_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: history_resender.go diff --git a/common/pagination/interface.go b/common/pagination/interface.go index c6bbcb653af..92eb3f39c24 100644 --- a/common/pagination/interface.go +++ b/common/pagination/interface.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination mocks.go -self_package github.com/uber/cadence/common/pagination +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination mocks.go -self_package github.com/uber/cadence/common/pagination package pagination diff --git a/common/pagination/mocks.go b/common/pagination/mocks.go index 863a9e48a62..af0f8213683 100644 --- a/common/pagination/mocks.go +++ b/common/pagination/mocks.go @@ -1,17 +1,17 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: interface.go diff --git a/common/persistence/client/bean.go b/common/persistence/client/bean.go index fa10b796d93..7f250d52ce9 100644 --- a/common/persistence/client/bean.go +++ b/common/persistence/client/bean.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination bean_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination bean_mock.go package client diff --git a/common/persistence/client/bean_mock.go b/common/persistence/client/bean_mock.go index 0746b13ceca..28a6e76eb73 100644 --- a/common/persistence/client/bean_mock.go +++ b/common/persistence/client/bean_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: bean.go diff --git a/common/persistence/domainReplicationQueue.go b/common/persistence/domainReplicationQueue.go index 18bf1cf350e..470a43ed333 100644 --- a/common/persistence/domainReplicationQueue.go +++ b/common/persistence/domainReplicationQueue.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination domainReplicationQueue_mock.go -self_package github.com/uber/common/persistence +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination domainReplicationQueue_mock.go -self_package github.com/uber/common/persistence package persistence diff --git a/common/persistence/domainReplicationQueue_mock.go b/common/persistence/domainReplicationQueue_mock.go index 07526405cbe..d9d37cbfeb9 100644 --- a/common/persistence/domainReplicationQueue_mock.go +++ b/common/persistence/domainReplicationQueue_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: domainReplicationQueue.go diff --git a/common/persistence/persistence-tests/executionManagerTest.go b/common/persistence/persistence-tests/executionManagerTest.go index 77a608a6332..13a16a9afc5 100644 --- a/common/persistence/persistence-tests/executionManagerTest.go +++ b/common/persistence/persistence-tests/executionManagerTest.go @@ -141,8 +141,8 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionDeDup() { State: p.WorkflowStateCreated, CloseStatus: p.WorkflowCloseStatusNone, }, - ExecutionStats: &p.ExecutionStats{}, - Checksum: csum, + ExecutionStats: &p.ExecutionStats{}, + Checksum: csum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -216,8 +216,8 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionStateCloseStatus() { NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, - Checksum: csum, + ExecutionStats: &p.ExecutionStats{}, + Checksum: csum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -346,8 +346,8 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionWithZombieState() { State: p.WorkflowStateZombie, CloseStatus: p.WorkflowCloseStatusNone, }, - ExecutionStats: &p.ExecutionStats{}, - Checksum: csum, + ExecutionStats: &p.ExecutionStats{}, + Checksum: csum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -438,8 +438,8 @@ func (s *ExecutionManagerSuite) TestUpdateWorkflowExecutionStateCloseStatus() { NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, - Checksum: csum, + ExecutionStats: &p.ExecutionStats{}, + Checksum: csum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -621,8 +621,8 @@ func (s *ExecutionManagerSuite) TestUpdateWorkflowExecutionWithZombieState() { State: p.WorkflowStateRunning, CloseStatus: p.WorkflowCloseStatusNone, }, - ExecutionStats: &p.ExecutionStats{}, - Checksum: csum, + ExecutionStats: &p.ExecutionStats{}, + Checksum: csum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -758,7 +758,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionBrandNew() { NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &p.ExecutionStats{}, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -817,8 +817,8 @@ func (s *ExecutionManagerSuite) TestUpsertWorkflowActivity() { State: p.WorkflowStateRunning, CloseStatus: p.WorkflowCloseStatusNone, }, - ExecutionStats: &p.ExecutionStats{}, - Checksum: csum, + ExecutionStats: &p.ExecutionStats{}, + Checksum: csum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -951,7 +951,7 @@ func (s *ExecutionManagerSuite) TestCreateWorkflowExecutionRunIDReuseWithoutRepl NextEventID: nextEventID, LastProcessedEvent: lastProcessedEventID, }, - ExecutionStats: &p.ExecutionStats{}, + ExecutionStats: &p.ExecutionStats{}, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -1084,7 +1084,7 @@ func (s *ExecutionManagerSuite) TestPersistenceStartWorkflow() { ScheduleID: int64(2), }, }, - TimerTasks: nil, + TimerTasks: nil, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID - 1, @@ -1174,7 +1174,7 @@ func (s *ExecutionManagerSuite) TestGetWorkflow() { ExecutionStats: &p.ExecutionStats{ HistorySize: int64(rand.Int31()), }, - Checksum: csum, + Checksum: csum, VersionHistories: verisonHistories, }, Mode: p.CreateWorkflowModeBrandNew, @@ -1729,10 +1729,10 @@ func (s *ExecutionManagerSuite) TestCleanupCorruptedWorkflow() { info0.ExecutionInfo.State = p.WorkflowStateCorrupted _, err6 := s.ExecutionManager.UpdateWorkflowExecution(ctx, &p.UpdateWorkflowExecutionRequest{ UpdateWorkflowMutation: p.WorkflowMutation{ - ExecutionInfo: info0.ExecutionInfo, - ExecutionStats: info0.ExecutionStats, - Condition: info0.ExecutionInfo.NextEventID, - Checksum: testWorkflowChecksum, + ExecutionInfo: info0.ExecutionInfo, + ExecutionStats: info0.ExecutionStats, + Condition: info0.ExecutionInfo.NextEventID, + Checksum: testWorkflowChecksum, VersionHistories: info0.VersionHistories, }, RangeID: s.ShardInfo.RangeID, diff --git a/common/persistence/persistence-tests/executionManagerTestForEventsV2.go b/common/persistence/persistence-tests/executionManagerTestForEventsV2.go index 1f94c9df5b0..5ee46719dbc 100644 --- a/common/persistence/persistence-tests/executionManagerTestForEventsV2.go +++ b/common/persistence/persistence-tests/executionManagerTestForEventsV2.go @@ -144,8 +144,8 @@ func (s *ExecutionManagerSuiteForEventsV2) TestWorkflowCreation() { VisibilityTimestamp: time.Now(), }, }, - TimerTasks: nil, - Checksum: csum, + TimerTasks: nil, + Checksum: csum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -372,9 +372,9 @@ func (s *ExecutionManagerSuiteForEventsV2) TestContinueAsNew() { DecisionTimeout: 1, BranchToken: []byte("branchToken1"), }, - ExecutionStats: &p.ExecutionStats{}, - TransferTasks: nil, - TimerTasks: nil, + ExecutionStats: &p.ExecutionStats{}, + TransferTasks: nil, + TimerTasks: nil, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, diff --git a/common/persistence/persistence-tests/persistenceTestBase.go b/common/persistence/persistence-tests/persistenceTestBase.go index 0080b78a76f..93d851ba7b2 100644 --- a/common/persistence/persistence-tests/persistenceTestBase.go +++ b/common/persistence/persistence-tests/persistenceTestBase.go @@ -364,8 +364,8 @@ func (s *TestBase) CreateWorkflowExecutionWithBranchToken( VisibilityTimestamp: time.Now(), }, }, - TimerTasks: timerTasks, - Checksum: testWorkflowChecksum, + TimerTasks: timerTasks, + Checksum: testWorkflowChecksum, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -561,7 +561,7 @@ func (s *TestBase) CreateChildWorkflowExecution(ctx context.Context, domainID st ScheduleID: decisionScheduleID, }, }, - TimerTasks: timerTasks, + TimerTasks: timerTasks, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, @@ -666,9 +666,9 @@ func (s *TestBase) ContinueAsNewExecution( DecisionTimeout: 1, AutoResetPoints: prevResetPoints, }, - ExecutionStats: updatedStats, - TransferTasks: nil, - TimerTasks: nil, + ExecutionStats: updatedStats, + TransferTasks: nil, + TimerTasks: nil, VersionHistories: verisonHistories, }, RangeID: s.ShardInfo.RangeID, diff --git a/common/reconciliation/invariant/collection_enumer.go b/common/reconciliation/invariant/collection_enumer.go index 121c7bca343..18b274bf5d1 100644 --- a/common/reconciliation/invariant/collection_enumer.go +++ b/common/reconciliation/invariant/collection_enumer.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights diff --git a/common/reconciliation/invariant/mocks.go b/common/reconciliation/invariant/mocks.go index cdd7fb6943f..5c7eddb3769 100644 --- a/common/reconciliation/invariant/mocks.go +++ b/common/reconciliation/invariant/mocks.go @@ -1,17 +1,17 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: types.go diff --git a/common/reconciliation/invariant/types.go b/common/reconciliation/invariant/types.go index 098b6b9c198..c15c4f7dede 100644 --- a/common/reconciliation/invariant/types.go +++ b/common/reconciliation/invariant/types.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination mocks.go -self_package github.com/uber/cadence/common/reconciliation/invariant +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination mocks.go -self_package github.com/uber/cadence/common/reconciliation/invariant //go:generate enumer -type=Collection package invariant diff --git a/common/reconciliation/store/mocks.go b/common/reconciliation/store/mocks.go index 2e20f7035d5..9db37405d67 100644 --- a/common/reconciliation/store/mocks.go +++ b/common/reconciliation/store/mocks.go @@ -1,17 +1,17 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: -// +// // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. -// +// // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: types.go diff --git a/common/reconciliation/store/types.go b/common/reconciliation/store/types.go index 7658b89bb63..580dfd66d02 100644 --- a/common/reconciliation/store/types.go +++ b/common/reconciliation/store/types.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination mocks.go -self_package github.com/uber/cadence/common/reconciliation/store +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination mocks.go -self_package github.com/uber/cadence/common/reconciliation/store package store diff --git a/common/service/dynamicconfig/clientInterface.go b/common/service/dynamicconfig/clientInterface.go index b7f6bd09f22..67dea46847c 100644 --- a/common/service/dynamicconfig/clientInterface.go +++ b/common/service/dynamicconfig/clientInterface.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination clientInterface_mock.go -self_package github.com/uber/cadence/common/service/dynamicconfig +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination clientInterface_mock.go -self_package github.com/uber/cadence/common/service/dynamicconfig package dynamicconfig diff --git a/common/service/dynamicconfig/clientInterface_mock.go b/common/service/dynamicconfig/clientInterface_mock.go index d5a72e66dfa..0ef02a7fabd 100644 --- a/common/service/dynamicconfig/clientInterface_mock.go +++ b/common/service/dynamicconfig/clientInterface_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: clientInterface.go diff --git a/common/task/interface.go b/common/task/interface.go index dddb0a5440b..54fac8f1522 100644 --- a/common/task/interface.go +++ b/common/task/interface.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/common/task +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/common/task package task diff --git a/common/task/interface_mock.go b/common/task/interface_mock.go index f87e3e1bf1f..60bbc71e1e1 100644 --- a/common/task/interface_mock.go +++ b/common/task/interface_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: interface.go diff --git a/proto/persistenceblobs/v1/message.proto b/proto/persistenceblobs/v1/message.proto index 8ebc143a2bc..570c164f521 100644 --- a/proto/persistenceblobs/v1/message.proto +++ b/proto/persistenceblobs/v1/message.proto @@ -1,3 +1,25 @@ +// Modifications Copyright (c) 2020 Uber Technologies Inc. + +// Copyright (c) 2020 Temporal Technologies, Inc. + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + syntax = "proto3"; option go_package = ".gen/proto"; diff --git a/service/frontend/interface.go b/service/frontend/interface.go index bc8039e3625..867684b7d07 100644 --- a/service/frontend/interface.go +++ b/service/frontend/interface.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../LICENSE -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/service/frontend +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/service/frontend package frontend diff --git a/service/frontend/interface_mock.go b/service/frontend/interface_mock.go index 841a84f9e00..8281c68b211 100644 --- a/service/frontend/interface_mock.go +++ b/service/frontend/interface_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: interface.go diff --git a/service/history/engine/interface.go b/service/history/engine/interface.go index 04449a23185..f745a8c6e7b 100644 --- a/service/history/engine/interface.go +++ b/service/history/engine/interface.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination interface_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination interface_mock.go package engine diff --git a/service/history/engine/interface_mock.go b/service/history/engine/interface_mock.go index 2c4e745891b..5a988f4a136 100644 --- a/service/history/engine/interface_mock.go +++ b/service/history/engine/interface_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: interface.go diff --git a/service/history/events/cache.go b/service/history/events/cache.go index 3d0b55bc327..11b6b9643c9 100644 --- a/service/history/events/cache.go +++ b/service/history/events/cache.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination cache_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination cache_mock.go package events diff --git a/service/history/events/cache_mock.go b/service/history/events/cache_mock.go index f023cf332e1..5e5642c794b 100644 --- a/service/history/events/cache_mock.go +++ b/service/history/events/cache_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: cache.go diff --git a/service/history/execution/context.go b/service/history/execution/context.go index 1ca54231927..75a39352cc6 100644 --- a/service/history/execution/context.go +++ b/service/history/execution/context.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination context_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination context_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/context_mock.go b/service/history/execution/context_mock.go index 14f1e5ca0f6..609bf1a98b5 100644 --- a/service/history/execution/context_mock.go +++ b/service/history/execution/context_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: context.go diff --git a/service/history/execution/mutable_state.go b/service/history/execution/mutable_state.go index 0595df58c67..f3895566728 100644 --- a/service/history/execution/mutable_state.go +++ b/service/history/execution/mutable_state.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination mutable_state_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination mutable_state_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/mutable_state_decision_task_manager.go b/service/history/execution/mutable_state_decision_task_manager.go index 35ab0f4f179..de394e01daf 100644 --- a/service/history/execution/mutable_state_decision_task_manager.go +++ b/service/history/execution/mutable_state_decision_task_manager.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination mutable_state_decision_task_manager_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination mutable_state_decision_task_manager_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/mutable_state_decision_task_manager_mock.go b/service/history/execution/mutable_state_decision_task_manager_mock.go index 0aa15840b52..ed6ea54b587 100644 --- a/service/history/execution/mutable_state_decision_task_manager_mock.go +++ b/service/history/execution/mutable_state_decision_task_manager_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: mutable_state_decision_task_manager.go diff --git a/service/history/execution/mutable_state_mock.go b/service/history/execution/mutable_state_mock.go index 817586a77fe..ce19e6fa2a4 100644 --- a/service/history/execution/mutable_state_mock.go +++ b/service/history/execution/mutable_state_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: mutable_state.go diff --git a/service/history/execution/mutable_state_task_generator.go b/service/history/execution/mutable_state_task_generator.go index e07ea64c1b3..0d438a928ca 100644 --- a/service/history/execution/mutable_state_task_generator.go +++ b/service/history/execution/mutable_state_task_generator.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination mutable_state_task_generator_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination mutable_state_task_generator_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/mutable_state_task_generator_mock.go b/service/history/execution/mutable_state_task_generator_mock.go index 8303ace5b5b..c5979701540 100644 --- a/service/history/execution/mutable_state_task_generator_mock.go +++ b/service/history/execution/mutable_state_task_generator_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: mutable_state_task_generator.go diff --git a/service/history/execution/mutable_state_task_refresher.go b/service/history/execution/mutable_state_task_refresher.go index 94888fe270b..19a87f345b3 100644 --- a/service/history/execution/mutable_state_task_refresher.go +++ b/service/history/execution/mutable_state_task_refresher.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination mutable_state_task_refresher_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination mutable_state_task_refresher_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/mutable_state_task_refresher_mock.go b/service/history/execution/mutable_state_task_refresher_mock.go index 0cc7698abf2..7c697514861 100644 --- a/service/history/execution/mutable_state_task_refresher_mock.go +++ b/service/history/execution/mutable_state_task_refresher_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: mutable_state_task_refresher.go diff --git a/service/history/execution/state_builder.go b/service/history/execution/state_builder.go index f6739531d03..695d107eb18 100644 --- a/service/history/execution/state_builder.go +++ b/service/history/execution/state_builder.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination state_builder_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination state_builder_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/state_builder_mock.go b/service/history/execution/state_builder_mock.go index fe70e8273b6..9f11b3cd1de 100644 --- a/service/history/execution/state_builder_mock.go +++ b/service/history/execution/state_builder_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: state_builder.go diff --git a/service/history/execution/state_rebuilder.go b/service/history/execution/state_rebuilder.go index a88aa15d131..daaece5d296 100644 --- a/service/history/execution/state_rebuilder.go +++ b/service/history/execution/state_rebuilder.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination state_rebuilder_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination state_rebuilder_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/state_rebuilder_mock.go b/service/history/execution/state_rebuilder_mock.go index a38c5ea427f..a91f1862661 100644 --- a/service/history/execution/state_rebuilder_mock.go +++ b/service/history/execution/state_rebuilder_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: state_rebuilder.go diff --git a/service/history/execution/timer_sequence.go b/service/history/execution/timer_sequence.go index fff57c54602..621dd5eb2bb 100644 --- a/service/history/execution/timer_sequence.go +++ b/service/history/execution/timer_sequence.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination timer_sequence_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination timer_sequence_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/timer_sequence_mock.go b/service/history/execution/timer_sequence_mock.go index e7372d61ea7..35d5445899f 100644 --- a/service/history/execution/timer_sequence_mock.go +++ b/service/history/execution/timer_sequence_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: timer_sequence.go diff --git a/service/history/execution/workflow.go b/service/history/execution/workflow.go index c83063022aa..6806bf7d71d 100644 --- a/service/history/execution/workflow.go +++ b/service/history/execution/workflow.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination workflow_mock.go -self_package github.com/uber/cadence/service/history/execution +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination workflow_mock.go -self_package github.com/uber/cadence/service/history/execution package execution diff --git a/service/history/execution/workflow_mock.go b/service/history/execution/workflow_mock.go index ac403343074..878ad5c2c1c 100644 --- a/service/history/execution/workflow_mock.go +++ b/service/history/execution/workflow_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: workflow.go diff --git a/service/history/failover/coordinator.go b/service/history/failover/coordinator.go index 16a3a2175f6..e2009b07b61 100644 --- a/service/history/failover/coordinator.go +++ b/service/history/failover/coordinator.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination coordinator_mock.go -self_package github.com/uber/cadence/service/history/failover +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination coordinator_mock.go -self_package github.com/uber/cadence/service/history/failover package failover diff --git a/service/history/failover/coordinator_mock.go b/service/history/failover/coordinator_mock.go index 565d29d5665..2ae60d2f10e 100644 --- a/service/history/failover/coordinator_mock.go +++ b/service/history/failover/coordinator_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: coordinator.go diff --git a/service/history/failover/marker_notifier.go b/service/history/failover/marker_notifier.go index ebc7530631b..a68283c418d 100644 --- a/service/history/failover/marker_notifier.go +++ b/service/history/failover/marker_notifier.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination marker_notifier_mock.go -self_package github.com/uber/cadence/service/history/failover +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination marker_notifier_mock.go -self_package github.com/uber/cadence/service/history/failover package failover diff --git a/service/history/failover/marker_notifier_mock.go b/service/history/failover/marker_notifier_mock.go index 2def6cbc125..c9e1696b17c 100644 --- a/service/history/failover/marker_notifier_mock.go +++ b/service/history/failover/marker_notifier_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: marker_notifier.go diff --git a/service/history/ndc/activity_replicator.go b/service/history/ndc/activity_replicator.go index d4f586a14e5..bcb1e17fd09 100644 --- a/service/history/ndc/activity_replicator.go +++ b/service/history/ndc/activity_replicator.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination activity_replicator_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination activity_replicator_mock.go package ndc diff --git a/service/history/ndc/activity_replicator_mock.go b/service/history/ndc/activity_replicator_mock.go index 41670c6d5a3..cee6bae75ce 100644 --- a/service/history/ndc/activity_replicator_mock.go +++ b/service/history/ndc/activity_replicator_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: activity_replicator.go diff --git a/service/history/ndc/branch_manager.go b/service/history/ndc/branch_manager.go index 4e6c2d481f1..f9fc66ad221 100644 --- a/service/history/ndc/branch_manager.go +++ b/service/history/ndc/branch_manager.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination branch_manager_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination branch_manager_mock.go package ndc diff --git a/service/history/ndc/branch_manager_mock.go b/service/history/ndc/branch_manager_mock.go index ca065b3d0ba..a0e92d6f8d0 100644 --- a/service/history/ndc/branch_manager_mock.go +++ b/service/history/ndc/branch_manager_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: branch_manager.go diff --git a/service/history/ndc/conflict_resolver.go b/service/history/ndc/conflict_resolver.go index 3e7fbd09ddf..87a1c1eb2a0 100644 --- a/service/history/ndc/conflict_resolver.go +++ b/service/history/ndc/conflict_resolver.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination conflict_resolver_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination conflict_resolver_mock.go package ndc diff --git a/service/history/ndc/conflict_resolver_mock.go b/service/history/ndc/conflict_resolver_mock.go index e2500cf1102..c8f4f70db7c 100644 --- a/service/history/ndc/conflict_resolver_mock.go +++ b/service/history/ndc/conflict_resolver_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: conflict_resolver.go diff --git a/service/history/ndc/events_reapplier.go b/service/history/ndc/events_reapplier.go index 0f307ab18d0..52bdd63a33c 100644 --- a/service/history/ndc/events_reapplier.go +++ b/service/history/ndc/events_reapplier.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination events_reapplier_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination events_reapplier_mock.go package ndc diff --git a/service/history/ndc/events_reapplier_mock.go b/service/history/ndc/events_reapplier_mock.go index 99345d7d69c..1a4813a7a4e 100644 --- a/service/history/ndc/events_reapplier_mock.go +++ b/service/history/ndc/events_reapplier_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: events_reapplier.go diff --git a/service/history/ndc/existing_workflow_transaction_manager.go b/service/history/ndc/existing_workflow_transaction_manager.go index 86eac97cae7..84b9b07e5ec 100644 --- a/service/history/ndc/existing_workflow_transaction_manager.go +++ b/service/history/ndc/existing_workflow_transaction_manager.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination existing_workflow_transaction_manager_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination existing_workflow_transaction_manager_mock.go package ndc diff --git a/service/history/ndc/existing_workflow_transaction_manager_mock.go b/service/history/ndc/existing_workflow_transaction_manager_mock.go index 8fa30fe1756..33855419bec 100644 --- a/service/history/ndc/existing_workflow_transaction_manager_mock.go +++ b/service/history/ndc/existing_workflow_transaction_manager_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: existing_workflow_transaction_manager.go diff --git a/service/history/ndc/new_workflow_transaction_mamanger_mock.go b/service/history/ndc/new_workflow_transaction_mamanger_mock.go index 193813e7854..7180c7244f8 100644 --- a/service/history/ndc/new_workflow_transaction_mamanger_mock.go +++ b/service/history/ndc/new_workflow_transaction_mamanger_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: new_workflow_transaction_manager.go diff --git a/service/history/ndc/new_workflow_transaction_manager.go b/service/history/ndc/new_workflow_transaction_manager.go index 115e95e871b..a8e2b71af6d 100644 --- a/service/history/ndc/new_workflow_transaction_manager.go +++ b/service/history/ndc/new_workflow_transaction_manager.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination new_workflow_transaction_mamanger_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination new_workflow_transaction_mamanger_mock.go package ndc diff --git a/service/history/ndc/transaction_manager.go b/service/history/ndc/transaction_manager.go index 60d025f0603..d0317c4e573 100644 --- a/service/history/ndc/transaction_manager.go +++ b/service/history/ndc/transaction_manager.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination transaction_manager_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination transaction_manager_mock.go package ndc diff --git a/service/history/ndc/transaction_manager_mock.go b/service/history/ndc/transaction_manager_mock.go index 0a0818170ef..8ccb7cea7c2 100644 --- a/service/history/ndc/transaction_manager_mock.go +++ b/service/history/ndc/transaction_manager_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: transaction_manager.go diff --git a/service/history/ndc/workflow_resetter.go b/service/history/ndc/workflow_resetter.go index b6c165c292d..d9ce1504487 100644 --- a/service/history/ndc/workflow_resetter.go +++ b/service/history/ndc/workflow_resetter.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination workflow_resetter_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination workflow_resetter_mock.go package ndc diff --git a/service/history/ndc/workflow_resetter_mock.go b/service/history/ndc/workflow_resetter_mock.go index aa81c428cb1..18f2031c340 100644 --- a/service/history/ndc/workflow_resetter_mock.go +++ b/service/history/ndc/workflow_resetter_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: workflow_resetter.go diff --git a/service/history/queue/interface.go b/service/history/queue/interface.go index c09dff4e7d8..53a390478d2 100644 --- a/service/history/queue/interface.go +++ b/service/history/queue/interface.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/service/history/queue +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/service/history/queue package queue diff --git a/service/history/queue/interface_mock.go b/service/history/queue/interface_mock.go index 49aebc3bd9a..fb1d0481f8a 100644 --- a/service/history/queue/interface_mock.go +++ b/service/history/queue/interface_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: interface.go diff --git a/service/history/replication/dlq_handler.go b/service/history/replication/dlq_handler.go index da9968850e8..309a6640b38 100644 --- a/service/history/replication/dlq_handler.go +++ b/service/history/replication/dlq_handler.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination dlq_handler_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination dlq_handler_mock.go package replication diff --git a/service/history/replication/dlq_handler_mock.go b/service/history/replication/dlq_handler_mock.go index ada59eb6727..b0a294b0b7f 100644 --- a/service/history/replication/dlq_handler_mock.go +++ b/service/history/replication/dlq_handler_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: dlq_handler.go diff --git a/service/history/replication/task_ack_manager.go b/service/history/replication/task_ack_manager.go index 44aa92c20e7..18e2662f2d9 100644 --- a/service/history/replication/task_ack_manager.go +++ b/service/history/replication/task_ack_manager.go @@ -20,7 +20,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination task_ack_manager_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination task_ack_manager_mock.go package replication diff --git a/service/history/replication/task_ack_manager_mock.go b/service/history/replication/task_ack_manager_mock.go index b57c0e12f9f..c7fd9c33b1f 100644 --- a/service/history/replication/task_ack_manager_mock.go +++ b/service/history/replication/task_ack_manager_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: task_ack_manager.go diff --git a/service/history/replication/task_executor.go b/service/history/replication/task_executor.go index c47e08857fe..9ddf4b8b067 100644 --- a/service/history/replication/task_executor.go +++ b/service/history/replication/task_executor.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination task_executor_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination task_executor_mock.go package replication diff --git a/service/history/replication/task_executor_mock.go b/service/history/replication/task_executor_mock.go index 6a8172bff1a..b1528f7743e 100644 --- a/service/history/replication/task_executor_mock.go +++ b/service/history/replication/task_executor_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: task_executor.go diff --git a/service/history/replication/task_fetcher.go b/service/history/replication/task_fetcher.go index ab3aa4d48f0..a4e5d8d2463 100644 --- a/service/history/replication/task_fetcher.go +++ b/service/history/replication/task_fetcher.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination task_fetcher_mock.go -self_package github.com/uber/cadence/service/history/replication +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination task_fetcher_mock.go -self_package github.com/uber/cadence/service/history/replication package replication diff --git a/service/history/replication/task_fetcher_mock.go b/service/history/replication/task_fetcher_mock.go index f8aac7db497..af571220b3e 100644 --- a/service/history/replication/task_fetcher_mock.go +++ b/service/history/replication/task_fetcher_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: task_fetcher.go diff --git a/service/history/replication/task_processor.go b/service/history/replication/task_processor.go index 1f7a9965293..238cea90cf2 100644 --- a/service/history/replication/task_processor.go +++ b/service/history/replication/task_processor.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination task_processor_mock.go -self_package github.com/uber/cadence/service/history/replication +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination task_processor_mock.go -self_package github.com/uber/cadence/service/history/replication package replication diff --git a/service/history/replication/task_processor_mock.go b/service/history/replication/task_processor_mock.go index ac0cf6d54ff..56577ebf0bd 100644 --- a/service/history/replication/task_processor_mock.go +++ b/service/history/replication/task_processor_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: task_processor.go diff --git a/service/history/reset/resetter.go b/service/history/reset/resetter.go index 79f1d9e0880..ed874ffcea8 100644 --- a/service/history/reset/resetter.go +++ b/service/history/reset/resetter.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination resetter_mock.go +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination resetter_mock.go package reset diff --git a/service/history/reset/resetter_mock.go b/service/history/reset/resetter_mock.go index a03621fbc94..c420babb3b4 100644 --- a/service/history/reset/resetter_mock.go +++ b/service/history/reset/resetter_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: resetter.go diff --git a/service/history/shard/controller.go b/service/history/shard/controller.go index e1e2787cce6..c97030c1742 100644 --- a/service/history/shard/controller.go +++ b/service/history/shard/controller.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination controller_mock.go -self_package github.com/uber/cadence/service/history/shard +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination controller_mock.go -self_package github.com/uber/cadence/service/history/shard package shard diff --git a/service/history/shard/controller_mock.go b/service/history/shard/controller_mock.go index c8d216539c7..bc02faaf11e 100644 --- a/service/history/shard/controller_mock.go +++ b/service/history/shard/controller_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: controller.go diff --git a/service/history/task/interface.go b/service/history/task/interface.go index e3bc75b29f0..0156b22a372 100644 --- a/service/history/task/interface.go +++ b/service/history/task/interface.go @@ -18,7 +18,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -//go:generate mockgen -copyright_file ../../../LICENSE -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/service/history/task +//go:generate mockgen -package $GOPACKAGE -source $GOFILE -destination interface_mock.go -self_package github.com/uber/cadence/service/history/task package task diff --git a/service/history/task/interface_mock.go b/service/history/task/interface_mock.go index f0073b4a2ca..51bdefd7e5a 100644 --- a/service/history/task/interface_mock.go +++ b/service/history/task/interface_mock.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights @@ -19,7 +19,6 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -// // Code generated by MockGen. DO NOT EDIT. // Source: interface.go diff --git a/service/worker/scanner/executions/scantype_enumer.go b/service/worker/scanner/executions/scantype_enumer.go index 2046f813b15..9e0504b309d 100644 --- a/service/worker/scanner/executions/scantype_enumer.go +++ b/service/worker/scanner/executions/scantype_enumer.go @@ -1,7 +1,7 @@ // The MIT License (MIT) -// + // Copyright (c) 2017-2020 Uber Technologies Inc. -// + // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights