diff --git a/Makefile b/Makefile index c92ea64b9..2c4df1f6f 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ default: test IMPORT_ROOT := go.uber.org/cadence -THRIFT_GENDIR := .gen/go +THRIFT_GENDIR := gen/thrift THRIFTRW_SRC := idls/thrift/cadence.thrift # one or more thriftrw-generated file(s), to create / depend on generated code THRIFTRW_OUT := $(THRIFT_GENDIR)/cadence/idl.go @@ -25,7 +25,7 @@ INTEG_STICKY_ON_COVER_FILE := $(COVER_ROOT)/integ_test_sticky_on_cover.out ALL_SRC := $(THRIFTRW_OUT) $(shell \ find . -name "*.go" | \ grep -v \ - -e .gen/ \ + -e gen/ \ -e .build/ \ ) @@ -68,7 +68,7 @@ yarpc-install: $(BINS)/thriftrw $(BINS)/thriftrw-plugin-yarpc thriftc: git-submodules yarpc-install $(THRIFTRW_OUT) copyright clean_thrift: - rm -rf .gen + rm -rf gen # `make copyright` or depend on "copyright" to force-run licensegen, # or depend on $(BUILD)/copyright to let it run as needed. @@ -103,9 +103,9 @@ test: thriftc unit_test integ_test_sticky_off integ_test_sticky_on $(COVER_ROOT)/cover.out: $(UT_COVER_FILE) $(INTEG_STICKY_OFF_COVER_FILE) $(INTEG_STICKY_ON_COVER_FILE) @echo "mode: atomic" > $(COVER_ROOT)/cover.out - cat $(UT_COVER_FILE) | grep -v "mode: atomic" | grep -v ".gen" >> $(COVER_ROOT)/cover.out - cat $(INTEG_STICKY_OFF_COVER_FILE) | grep -v "mode: atomic" | grep -v ".gen" >> $(COVER_ROOT)/cover.out - cat $(INTEG_STICKY_ON_COVER_FILE) | grep -v "mode: atomic" | grep -v ".gen" >> $(COVER_ROOT)/cover.out + cat $(UT_COVER_FILE) | grep -v "mode: atomic" | grep -v "gen" >> $(COVER_ROOT)/cover.out + cat $(INTEG_STICKY_OFF_COVER_FILE) | grep -v "mode: atomic" | grep -v "gen" >> $(COVER_ROOT)/cover.out + cat $(INTEG_STICKY_ON_COVER_FILE) | grep -v "mode: atomic" | grep -v "gen" >> $(COVER_ROOT)/cover.out cover: $(COVER_ROOT)/cover.out go tool cover -html=$(COVER_ROOT)/cover.out; @@ -150,7 +150,7 @@ fmt: clean: rm -Rf $(BUILD) - rm -Rf .gen + rm -Rf gen # broken up into multiple += so I can interleave comments. # this all becomes a single line of output. diff --git a/client/client.go b/client/client.go index f5850dab1..9c948f093 100644 --- a/client/client.go +++ b/client/client.go @@ -26,9 +26,9 @@ package client import ( "context" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - s "go.uber.org/cadence/.gen/go/shared" "go.uber.org/cadence/encoded" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal" "go.uber.org/cadence/workflow" ) diff --git a/error.go b/error.go index cd67e9488..9623ad172 100644 --- a/error.go +++ b/error.go @@ -21,7 +21,7 @@ package cadence import ( - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal" "go.uber.org/cadence/workflow" ) diff --git a/evictiontest/workflow_cache_eviction_test.go b/evictiontest/workflow_cache_eviction_test.go index 77f25535f..93b055d75 100644 --- a/evictiontest/workflow_cache_eviction_test.go +++ b/evictiontest/workflow_cache_eviction_test.go @@ -38,8 +38,8 @@ import ( log "github.com/sirupsen/logrus" "github.com/stretchr/testify/suite" "go.uber.org/atomic" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - m "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + m "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/worker" diff --git a/.gen/go/cadence/idl.go b/gen/thrift/cadence/idl.go similarity index 99% rename from .gen/go/cadence/idl.go rename to gen/thrift/cadence/idl.go index 13a45da9f..f66e66068 100644 --- a/.gen/go/cadence/idl.go +++ b/gen/thrift/cadence/idl.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -24,14 +24,14 @@ package cadence import ( - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/thriftreflect" ) // ThriftModule represents the IDL file used to generate this package. var ThriftModule = &thriftreflect.ThriftModule{ Name: "cadence", - Package: "go.uber.org/cadence/.gen/go/cadence", + Package: "go.uber.org/cadence/gen/thrift/cadence", FilePath: "cadence.thrift", SHA1: "4f624203d4b1260bcccc8789d989e4e98107f2c9", Includes: []*thriftreflect.ThriftModule{ diff --git a/.gen/go/cadence/workflowservice_countworkflowexecutions.go b/gen/thrift/cadence/workflowservice_countworkflowexecutions.go similarity index 99% rename from .gen/go/cadence/workflowservice_countworkflowexecutions.go rename to gen/thrift/cadence/workflowservice_countworkflowexecutions.go index 6880a6e59..30c32859c 100644 --- a/.gen/go/cadence/workflowservice_countworkflowexecutions.go +++ b/gen/thrift/cadence/workflowservice_countworkflowexecutions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_deprecatedomain.go b/gen/thrift/cadence/workflowservice_deprecatedomain.go similarity index 99% rename from .gen/go/cadence/workflowservice_deprecatedomain.go rename to gen/thrift/cadence/workflowservice_deprecatedomain.go index 8bf332a95..c7d6ec6ae 100644 --- a/.gen/go/cadence/workflowservice_deprecatedomain.go +++ b/gen/thrift/cadence/workflowservice_deprecatedomain.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_describedomain.go b/gen/thrift/cadence/workflowservice_describedomain.go similarity index 99% rename from .gen/go/cadence/workflowservice_describedomain.go rename to gen/thrift/cadence/workflowservice_describedomain.go index 77544c871..0bc55d2ab 100644 --- a/.gen/go/cadence/workflowservice_describedomain.go +++ b/gen/thrift/cadence/workflowservice_describedomain.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_describetasklist.go b/gen/thrift/cadence/workflowservice_describetasklist.go similarity index 99% rename from .gen/go/cadence/workflowservice_describetasklist.go rename to gen/thrift/cadence/workflowservice_describetasklist.go index 7fa24b9cc..0b593d64e 100644 --- a/.gen/go/cadence/workflowservice_describetasklist.go +++ b/gen/thrift/cadence/workflowservice_describetasklist.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_describeworkflowexecution.go b/gen/thrift/cadence/workflowservice_describeworkflowexecution.go similarity index 99% rename from .gen/go/cadence/workflowservice_describeworkflowexecution.go rename to gen/thrift/cadence/workflowservice_describeworkflowexecution.go index ad2dcb9f2..ab7ef07b8 100644 --- a/.gen/go/cadence/workflowservice_describeworkflowexecution.go +++ b/gen/thrift/cadence/workflowservice_describeworkflowexecution.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_getclusterinfo.go b/gen/thrift/cadence/workflowservice_getclusterinfo.go similarity index 99% rename from .gen/go/cadence/workflowservice_getclusterinfo.go rename to gen/thrift/cadence/workflowservice_getclusterinfo.go index 775e2d033..4d5d43d26 100644 --- a/.gen/go/cadence/workflowservice_getclusterinfo.go +++ b/gen/thrift/cadence/workflowservice_getclusterinfo.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_getsearchattributes.go b/gen/thrift/cadence/workflowservice_getsearchattributes.go similarity index 99% rename from .gen/go/cadence/workflowservice_getsearchattributes.go rename to gen/thrift/cadence/workflowservice_getsearchattributes.go index dca3d3c0f..f9db27d12 100644 --- a/.gen/go/cadence/workflowservice_getsearchattributes.go +++ b/gen/thrift/cadence/workflowservice_getsearchattributes.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_getworkflowexecutionhistory.go b/gen/thrift/cadence/workflowservice_getworkflowexecutionhistory.go similarity index 99% rename from .gen/go/cadence/workflowservice_getworkflowexecutionhistory.go rename to gen/thrift/cadence/workflowservice_getworkflowexecutionhistory.go index 28c765f74..241957fd0 100644 --- a/.gen/go/cadence/workflowservice_getworkflowexecutionhistory.go +++ b/gen/thrift/cadence/workflowservice_getworkflowexecutionhistory.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_listarchivedworkflowexecutions.go b/gen/thrift/cadence/workflowservice_listarchivedworkflowexecutions.go similarity index 99% rename from .gen/go/cadence/workflowservice_listarchivedworkflowexecutions.go rename to gen/thrift/cadence/workflowservice_listarchivedworkflowexecutions.go index 9e8b79fad..e5ffc1ca8 100644 --- a/.gen/go/cadence/workflowservice_listarchivedworkflowexecutions.go +++ b/gen/thrift/cadence/workflowservice_listarchivedworkflowexecutions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_listclosedworkflowexecutions.go b/gen/thrift/cadence/workflowservice_listclosedworkflowexecutions.go similarity index 99% rename from .gen/go/cadence/workflowservice_listclosedworkflowexecutions.go rename to gen/thrift/cadence/workflowservice_listclosedworkflowexecutions.go index ff6c06e0a..217469c08 100644 --- a/.gen/go/cadence/workflowservice_listclosedworkflowexecutions.go +++ b/gen/thrift/cadence/workflowservice_listclosedworkflowexecutions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_listdomains.go b/gen/thrift/cadence/workflowservice_listdomains.go similarity index 99% rename from .gen/go/cadence/workflowservice_listdomains.go rename to gen/thrift/cadence/workflowservice_listdomains.go index 7a9cdf23e..96676b79e 100644 --- a/.gen/go/cadence/workflowservice_listdomains.go +++ b/gen/thrift/cadence/workflowservice_listdomains.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_listopenworkflowexecutions.go b/gen/thrift/cadence/workflowservice_listopenworkflowexecutions.go similarity index 99% rename from .gen/go/cadence/workflowservice_listopenworkflowexecutions.go rename to gen/thrift/cadence/workflowservice_listopenworkflowexecutions.go index 459564e45..20c2b6a19 100644 --- a/.gen/go/cadence/workflowservice_listopenworkflowexecutions.go +++ b/gen/thrift/cadence/workflowservice_listopenworkflowexecutions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_listtasklistpartitions.go b/gen/thrift/cadence/workflowservice_listtasklistpartitions.go similarity index 99% rename from .gen/go/cadence/workflowservice_listtasklistpartitions.go rename to gen/thrift/cadence/workflowservice_listtasklistpartitions.go index 5f84357f7..d378f1b28 100644 --- a/.gen/go/cadence/workflowservice_listtasklistpartitions.go +++ b/gen/thrift/cadence/workflowservice_listtasklistpartitions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_listworkflowexecutions.go b/gen/thrift/cadence/workflowservice_listworkflowexecutions.go similarity index 99% rename from .gen/go/cadence/workflowservice_listworkflowexecutions.go rename to gen/thrift/cadence/workflowservice_listworkflowexecutions.go index a14fe8fa1..efe0b0b1e 100644 --- a/.gen/go/cadence/workflowservice_listworkflowexecutions.go +++ b/gen/thrift/cadence/workflowservice_listworkflowexecutions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_pollforactivitytask.go b/gen/thrift/cadence/workflowservice_pollforactivitytask.go similarity index 99% rename from .gen/go/cadence/workflowservice_pollforactivitytask.go rename to gen/thrift/cadence/workflowservice_pollforactivitytask.go index c2fdae4df..a7d7928a9 100644 --- a/.gen/go/cadence/workflowservice_pollforactivitytask.go +++ b/gen/thrift/cadence/workflowservice_pollforactivitytask.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_pollfordecisiontask.go b/gen/thrift/cadence/workflowservice_pollfordecisiontask.go similarity index 99% rename from .gen/go/cadence/workflowservice_pollfordecisiontask.go rename to gen/thrift/cadence/workflowservice_pollfordecisiontask.go index 61cc0dea4..ee85ff523 100644 --- a/.gen/go/cadence/workflowservice_pollfordecisiontask.go +++ b/gen/thrift/cadence/workflowservice_pollfordecisiontask.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_queryworkflow.go b/gen/thrift/cadence/workflowservice_queryworkflow.go similarity index 99% rename from .gen/go/cadence/workflowservice_queryworkflow.go rename to gen/thrift/cadence/workflowservice_queryworkflow.go index 7220a6948..77f9fc27e 100644 --- a/.gen/go/cadence/workflowservice_queryworkflow.go +++ b/gen/thrift/cadence/workflowservice_queryworkflow.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_recordactivitytaskheartbeat.go b/gen/thrift/cadence/workflowservice_recordactivitytaskheartbeat.go similarity index 99% rename from .gen/go/cadence/workflowservice_recordactivitytaskheartbeat.go rename to gen/thrift/cadence/workflowservice_recordactivitytaskheartbeat.go index b29c6f31a..f809a7751 100644 --- a/.gen/go/cadence/workflowservice_recordactivitytaskheartbeat.go +++ b/gen/thrift/cadence/workflowservice_recordactivitytaskheartbeat.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_recordactivitytaskheartbeatbyid.go b/gen/thrift/cadence/workflowservice_recordactivitytaskheartbeatbyid.go similarity index 99% rename from .gen/go/cadence/workflowservice_recordactivitytaskheartbeatbyid.go rename to gen/thrift/cadence/workflowservice_recordactivitytaskheartbeatbyid.go index f41590810..6cd5baf12 100644 --- a/.gen/go/cadence/workflowservice_recordactivitytaskheartbeatbyid.go +++ b/gen/thrift/cadence/workflowservice_recordactivitytaskheartbeatbyid.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_registerdomain.go b/gen/thrift/cadence/workflowservice_registerdomain.go similarity index 99% rename from .gen/go/cadence/workflowservice_registerdomain.go rename to gen/thrift/cadence/workflowservice_registerdomain.go index 00b73926f..2bb5bcf28 100644 --- a/.gen/go/cadence/workflowservice_registerdomain.go +++ b/gen/thrift/cadence/workflowservice_registerdomain.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_requestcancelworkflowexecution.go b/gen/thrift/cadence/workflowservice_requestcancelworkflowexecution.go similarity index 99% rename from .gen/go/cadence/workflowservice_requestcancelworkflowexecution.go rename to gen/thrift/cadence/workflowservice_requestcancelworkflowexecution.go index 012d1f570..da07f1a9f 100644 --- a/.gen/go/cadence/workflowservice_requestcancelworkflowexecution.go +++ b/gen/thrift/cadence/workflowservice_requestcancelworkflowexecution.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_resetstickytasklist.go b/gen/thrift/cadence/workflowservice_resetstickytasklist.go similarity index 99% rename from .gen/go/cadence/workflowservice_resetstickytasklist.go rename to gen/thrift/cadence/workflowservice_resetstickytasklist.go index e3ae71909..bff78c86c 100644 --- a/.gen/go/cadence/workflowservice_resetstickytasklist.go +++ b/gen/thrift/cadence/workflowservice_resetstickytasklist.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_resetworkflowexecution.go b/gen/thrift/cadence/workflowservice_resetworkflowexecution.go similarity index 99% rename from .gen/go/cadence/workflowservice_resetworkflowexecution.go rename to gen/thrift/cadence/workflowservice_resetworkflowexecution.go index c9d3e3b8b..378af1b08 100644 --- a/.gen/go/cadence/workflowservice_resetworkflowexecution.go +++ b/gen/thrift/cadence/workflowservice_resetworkflowexecution.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_respondactivitytaskcanceled.go b/gen/thrift/cadence/workflowservice_respondactivitytaskcanceled.go similarity index 99% rename from .gen/go/cadence/workflowservice_respondactivitytaskcanceled.go rename to gen/thrift/cadence/workflowservice_respondactivitytaskcanceled.go index 7acec9ef5..7bc9a566c 100644 --- a/.gen/go/cadence/workflowservice_respondactivitytaskcanceled.go +++ b/gen/thrift/cadence/workflowservice_respondactivitytaskcanceled.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_respondactivitytaskcanceledbyid.go b/gen/thrift/cadence/workflowservice_respondactivitytaskcanceledbyid.go similarity index 99% rename from .gen/go/cadence/workflowservice_respondactivitytaskcanceledbyid.go rename to gen/thrift/cadence/workflowservice_respondactivitytaskcanceledbyid.go index 92c3bbedc..1904ef1bd 100644 --- a/.gen/go/cadence/workflowservice_respondactivitytaskcanceledbyid.go +++ b/gen/thrift/cadence/workflowservice_respondactivitytaskcanceledbyid.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_respondactivitytaskcompleted.go b/gen/thrift/cadence/workflowservice_respondactivitytaskcompleted.go similarity index 99% rename from .gen/go/cadence/workflowservice_respondactivitytaskcompleted.go rename to gen/thrift/cadence/workflowservice_respondactivitytaskcompleted.go index 26b00cd6d..336b67618 100644 --- a/.gen/go/cadence/workflowservice_respondactivitytaskcompleted.go +++ b/gen/thrift/cadence/workflowservice_respondactivitytaskcompleted.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_respondactivitytaskcompletedbyid.go b/gen/thrift/cadence/workflowservice_respondactivitytaskcompletedbyid.go similarity index 99% rename from .gen/go/cadence/workflowservice_respondactivitytaskcompletedbyid.go rename to gen/thrift/cadence/workflowservice_respondactivitytaskcompletedbyid.go index 422b95174..51a1ddc2c 100644 --- a/.gen/go/cadence/workflowservice_respondactivitytaskcompletedbyid.go +++ b/gen/thrift/cadence/workflowservice_respondactivitytaskcompletedbyid.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_respondactivitytaskfailed.go b/gen/thrift/cadence/workflowservice_respondactivitytaskfailed.go similarity index 99% rename from .gen/go/cadence/workflowservice_respondactivitytaskfailed.go rename to gen/thrift/cadence/workflowservice_respondactivitytaskfailed.go index b868f2986..870ea938e 100644 --- a/.gen/go/cadence/workflowservice_respondactivitytaskfailed.go +++ b/gen/thrift/cadence/workflowservice_respondactivitytaskfailed.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_respondactivitytaskfailedbyid.go b/gen/thrift/cadence/workflowservice_respondactivitytaskfailedbyid.go similarity index 99% rename from .gen/go/cadence/workflowservice_respondactivitytaskfailedbyid.go rename to gen/thrift/cadence/workflowservice_respondactivitytaskfailedbyid.go index 523d6f01e..a3504d8ef 100644 --- a/.gen/go/cadence/workflowservice_respondactivitytaskfailedbyid.go +++ b/gen/thrift/cadence/workflowservice_respondactivitytaskfailedbyid.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_responddecisiontaskcompleted.go b/gen/thrift/cadence/workflowservice_responddecisiontaskcompleted.go similarity index 99% rename from .gen/go/cadence/workflowservice_responddecisiontaskcompleted.go rename to gen/thrift/cadence/workflowservice_responddecisiontaskcompleted.go index be8588016..775887ba9 100644 --- a/.gen/go/cadence/workflowservice_responddecisiontaskcompleted.go +++ b/gen/thrift/cadence/workflowservice_responddecisiontaskcompleted.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_responddecisiontaskfailed.go b/gen/thrift/cadence/workflowservice_responddecisiontaskfailed.go similarity index 99% rename from .gen/go/cadence/workflowservice_responddecisiontaskfailed.go rename to gen/thrift/cadence/workflowservice_responddecisiontaskfailed.go index 042d75af2..0d4cb207d 100644 --- a/.gen/go/cadence/workflowservice_responddecisiontaskfailed.go +++ b/gen/thrift/cadence/workflowservice_responddecisiontaskfailed.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_respondquerytaskcompleted.go b/gen/thrift/cadence/workflowservice_respondquerytaskcompleted.go similarity index 99% rename from .gen/go/cadence/workflowservice_respondquerytaskcompleted.go rename to gen/thrift/cadence/workflowservice_respondquerytaskcompleted.go index e15dba35e..7c31e5e3b 100644 --- a/.gen/go/cadence/workflowservice_respondquerytaskcompleted.go +++ b/gen/thrift/cadence/workflowservice_respondquerytaskcompleted.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_scanworkflowexecutions.go b/gen/thrift/cadence/workflowservice_scanworkflowexecutions.go similarity index 99% rename from .gen/go/cadence/workflowservice_scanworkflowexecutions.go rename to gen/thrift/cadence/workflowservice_scanworkflowexecutions.go index d8f3f14e3..416d43f28 100644 --- a/.gen/go/cadence/workflowservice_scanworkflowexecutions.go +++ b/gen/thrift/cadence/workflowservice_scanworkflowexecutions.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_signalwithstartworkflowexecution.go b/gen/thrift/cadence/workflowservice_signalwithstartworkflowexecution.go similarity index 99% rename from .gen/go/cadence/workflowservice_signalwithstartworkflowexecution.go rename to gen/thrift/cadence/workflowservice_signalwithstartworkflowexecution.go index 5a9f681fb..6b21ac492 100644 --- a/.gen/go/cadence/workflowservice_signalwithstartworkflowexecution.go +++ b/gen/thrift/cadence/workflowservice_signalwithstartworkflowexecution.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_signalworkflowexecution.go b/gen/thrift/cadence/workflowservice_signalworkflowexecution.go similarity index 99% rename from .gen/go/cadence/workflowservice_signalworkflowexecution.go rename to gen/thrift/cadence/workflowservice_signalworkflowexecution.go index 20b883977..bfd9287b3 100644 --- a/.gen/go/cadence/workflowservice_signalworkflowexecution.go +++ b/gen/thrift/cadence/workflowservice_signalworkflowexecution.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_startworkflowexecution.go b/gen/thrift/cadence/workflowservice_startworkflowexecution.go similarity index 99% rename from .gen/go/cadence/workflowservice_startworkflowexecution.go rename to gen/thrift/cadence/workflowservice_startworkflowexecution.go index 96323b601..3bfd10dcb 100644 --- a/.gen/go/cadence/workflowservice_startworkflowexecution.go +++ b/gen/thrift/cadence/workflowservice_startworkflowexecution.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_terminateworkflowexecution.go b/gen/thrift/cadence/workflowservice_terminateworkflowexecution.go similarity index 99% rename from .gen/go/cadence/workflowservice_terminateworkflowexecution.go rename to gen/thrift/cadence/workflowservice_terminateworkflowexecution.go index 43b7a645d..0fc99d4ed 100644 --- a/.gen/go/cadence/workflowservice_terminateworkflowexecution.go +++ b/gen/thrift/cadence/workflowservice_terminateworkflowexecution.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowservice_updatedomain.go b/gen/thrift/cadence/workflowservice_updatedomain.go similarity index 99% rename from .gen/go/cadence/workflowservice_updatedomain.go rename to gen/thrift/cadence/workflowservice_updatedomain.go index f747b98b6..9da17034d 100644 --- a/.gen/go/cadence/workflowservice_updatedomain.go +++ b/gen/thrift/cadence/workflowservice_updatedomain.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,7 +26,7 @@ package cadence import ( "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "strings" ) diff --git a/.gen/go/cadence/workflowserviceclient/client.go b/gen/thrift/cadence/workflowserviceclient/client.go similarity index 99% rename from .gen/go/cadence/workflowserviceclient/client.go rename to gen/thrift/cadence/workflowserviceclient/client.go index 901226092..fc7ec19eb 100644 --- a/.gen/go/cadence/workflowserviceclient/client.go +++ b/gen/thrift/cadence/workflowserviceclient/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -25,8 +25,8 @@ package workflowserviceclient import ( "context" - "go.uber.org/cadence/.gen/go/cadence" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "go.uber.org/yarpc" "go.uber.org/yarpc/api/transport" diff --git a/.gen/go/cadence/workflowservicefx/client.go b/gen/thrift/cadence/workflowservicefx/client.go similarity index 95% rename from .gen/go/cadence/workflowservicefx/client.go rename to gen/thrift/cadence/workflowservicefx/client.go index f679cfbb5..d099712e4 100644 --- a/.gen/go/cadence/workflowservicefx/client.go +++ b/gen/thrift/cadence/workflowservicefx/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -24,7 +24,7 @@ package workflowservicefx import ( - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" "go.uber.org/fx" "go.uber.org/yarpc" "go.uber.org/yarpc/encoding/thrift" diff --git a/.gen/go/cadence/workflowservicefx/doc.go b/gen/thrift/cadence/workflowservicefx/doc.go similarity index 97% rename from .gen/go/cadence/workflowservicefx/doc.go rename to gen/thrift/cadence/workflowservicefx/doc.go index f524dc193..f7c687d99 100644 --- a/.gen/go/cadence/workflowservicefx/doc.go +++ b/gen/thrift/cadence/workflowservicefx/doc.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 diff --git a/.gen/go/cadence/workflowservicefx/server.go b/gen/thrift/cadence/workflowservicefx/server.go similarity index 95% rename from .gen/go/cadence/workflowservicefx/server.go rename to gen/thrift/cadence/workflowservicefx/server.go index afe0e034b..ced108c9d 100644 --- a/.gen/go/cadence/workflowservicefx/server.go +++ b/gen/thrift/cadence/workflowservicefx/server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -24,7 +24,7 @@ package workflowservicefx import ( - "go.uber.org/cadence/.gen/go/cadence/workflowserviceserver" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceserver" "go.uber.org/fx" "go.uber.org/yarpc/api/transport" "go.uber.org/yarpc/encoding/thrift" diff --git a/.gen/go/cadence/workflowserviceserver/server.go b/gen/thrift/cadence/workflowserviceserver/server.go similarity index 99% rename from .gen/go/cadence/workflowserviceserver/server.go rename to gen/thrift/cadence/workflowserviceserver/server.go index 5931d54a1..e2dbad103 100644 --- a/.gen/go/cadence/workflowserviceserver/server.go +++ b/gen/thrift/cadence/workflowserviceserver/server.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -25,8 +25,8 @@ package workflowserviceserver import ( "context" - "go.uber.org/cadence/.gen/go/cadence" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/wire" "go.uber.org/yarpc/api/transport" "go.uber.org/yarpc/encoding/thrift" diff --git a/.gen/go/cadence/workflowservicetest/client.go b/gen/thrift/cadence/workflowservicetest/client.go similarity index 99% rename from .gen/go/cadence/workflowservicetest/client.go rename to gen/thrift/cadence/workflowservicetest/client.go index 512ab3722..3cbefe9e3 100644 --- a/.gen/go/cadence/workflowservicetest/client.go +++ b/gen/thrift/cadence/workflowservicetest/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -26,8 +26,8 @@ package workflowservicetest import ( "context" "github.com/golang/mock/gomock" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/yarpc" ) diff --git a/.gen/go/shared/idl.go b/gen/thrift/shared/idl.go similarity index 99% rename from .gen/go/shared/idl.go rename to gen/thrift/shared/idl.go index 92caa8fa7..083fcc93c 100644 --- a/.gen/go/shared/idl.go +++ b/gen/thrift/shared/idl.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 @@ -28,7 +28,7 @@ import "go.uber.org/thriftrw/thriftreflect" // ThriftModule represents the IDL file used to generate this package. var ThriftModule = &thriftreflect.ThriftModule{ Name: "shared", - Package: "go.uber.org/cadence/.gen/go/shared", + Package: "go.uber.org/cadence/gen/thrift/shared", FilePath: "shared.thrift", SHA1: "137526fa9a2a6dfdf9e7312aec59e638d6c94177", Raw: rawIDL, diff --git a/.gen/go/shared/types.go b/gen/thrift/shared/types.go similarity index 99% rename from .gen/go/shared/types.go rename to gen/thrift/shared/types.go index b982b6408..29515abae 100644 --- a/.gen/go/shared/types.go +++ b/gen/thrift/shared/types.go @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2020 Uber Technologies Inc. +// Copyright (c) 2017-2021 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 diff --git a/go.mod b/go.mod index a17551a4e..9af911e14 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( github.com/uber/tchannel-go v1.14.0 go.uber.org/atomic v1.4.0 go.uber.org/dig v1.7.0 // indirect - go.uber.org/fx v1.9.0 // indirect + go.uber.org/fx v1.9.0 go.uber.org/goleak v0.10.0 go.uber.org/multierr v1.1.0 // indirect go.uber.org/net/metrics v1.0.1 // indirect diff --git a/internal/activity.go b/internal/activity.go index 08a46ba63..a9591b3f7 100644 --- a/internal/activity.go +++ b/internal/activity.go @@ -28,7 +28,7 @@ import ( "github.com/opentracing/opentracing-go" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) diff --git a/internal/activity_test.go b/internal/activity_test.go index bb4c127d0..e37a4f234 100644 --- a/internal/activity_test.go +++ b/internal/activity_test.go @@ -28,8 +28,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/yarpc" ) diff --git a/internal/client.go b/internal/client.go index f15677925..be9b17232 100644 --- a/internal/client.go +++ b/internal/client.go @@ -28,8 +28,8 @@ import ( "github.com/opentracing/opentracing-go" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - s "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common/metrics" "go.uber.org/zap" ) diff --git a/internal/cmd/tools/copyright/licensegen.go b/internal/cmd/tools/copyright/licensegen.go index 48482f2a7..91a44370f 100644 --- a/internal/cmd/tools/copyright/licensegen.go +++ b/internal/cmd/tools/copyright/licensegen.go @@ -150,7 +150,7 @@ func (task *addLicenseHeaderTask) handleFile(path string, fileInfo os.FileInfo, } func isFileAutogenerated(path string) bool { - return strings.HasPrefix(path, ".gen") + return strings.HasPrefix(path, "gen") } func mustProcessPath(path string) bool { diff --git a/internal/common/convert.go b/internal/common/convert.go index 0646de53f..76113dad9 100644 --- a/internal/common/convert.go +++ b/internal/common/convert.go @@ -23,7 +23,7 @@ package common import ( "math" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" ) // Int32Ceil return the int32 ceil of a float64 diff --git a/internal/common/metrics/service_wrapper.go b/internal/common/metrics/service_wrapper.go index 0a7fc7aa1..ae547ad3c 100644 --- a/internal/common/metrics/service_wrapper.go +++ b/internal/common/metrics/service_wrapper.go @@ -26,8 +26,8 @@ import ( "time" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/yarpc" ) diff --git a/internal/common/metrics/service_wrapper_test.go b/internal/common/metrics/service_wrapper_test.go index 8deee2955..2b9db86a0 100644 --- a/internal/common/metrics/service_wrapper_test.go +++ b/internal/common/metrics/service_wrapper_test.go @@ -32,9 +32,9 @@ import ( "github.com/stretchr/testify/require" "github.com/uber-go/tally" "github.com/uber/tchannel-go/thrift" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - s "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/yarpc" ) diff --git a/internal/common/serializer/history_serializer.go b/internal/common/serializer/history_serializer.go index 1ee7ba10e..9e20e9a0f 100644 --- a/internal/common/serializer/history_serializer.go +++ b/internal/common/serializer/history_serializer.go @@ -25,7 +25,8 @@ import ( "encoding/json" "errors" "fmt" - "go.uber.org/cadence/.gen/go/shared" + + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/thriftrw/protocol" "go.uber.org/thriftrw/wire" ) diff --git a/internal/common/util/stringer.go b/internal/common/util/stringer.go index 47e312132..b5a3cc249 100644 --- a/internal/common/util/stringer.go +++ b/internal/common/util/stringer.go @@ -25,7 +25,7 @@ import ( "fmt" "reflect" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" ) func anyToString(d interface{}) string { diff --git a/internal/context.go b/internal/context.go index 6f7aeddfb..137fdb352 100644 --- a/internal/context.go +++ b/internal/context.go @@ -25,7 +25,7 @@ import ( "time" "github.com/opentracing/opentracing-go" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" ) const activeSpanContextKey contextKey = "activeSpanContextKey" diff --git a/internal/error.go b/internal/error.go index 705e712a8..209a4b3b4 100644 --- a/internal/error.go +++ b/internal/error.go @@ -27,7 +27,7 @@ import ( "reflect" "strings" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" ) /* diff --git a/internal/error_test.go b/internal/error_test.go index 8a99be395..b9a7412fd 100644 --- a/internal/error_test.go +++ b/internal/error_test.go @@ -26,7 +26,7 @@ import ( "testing" "github.com/stretchr/testify/require" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/zap" ) diff --git a/internal/headers.go b/internal/headers.go index 2134e87c7..4174f7fa2 100644 --- a/internal/headers.go +++ b/internal/headers.go @@ -23,7 +23,7 @@ package internal import ( "context" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" ) // HeaderWriter is an interface to write information to cadence headers diff --git a/internal/headers_test.go b/internal/headers_test.go index b0b091a6b..8beb30f0a 100644 --- a/internal/headers_test.go +++ b/internal/headers_test.go @@ -24,7 +24,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" ) func TestHeaderWriter(t *testing.T) { diff --git a/internal/internal_activity.go b/internal/internal_activity.go index aaef48987..eb9c46e83 100644 --- a/internal/internal_activity.go +++ b/internal/internal_activity.go @@ -32,7 +32,7 @@ import ( "github.com/opentracing/opentracing-go" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/zap" ) diff --git a/internal/internal_coroutines_test.go b/internal/internal_coroutines_test.go index 0c4b39210..96c2e042a 100644 --- a/internal/internal_coroutines_test.go +++ b/internal/internal_coroutines_test.go @@ -626,7 +626,7 @@ func TestDispatchClose(t *testing.T) { for i := 0; i < 10; i++ { ii := i GoNamed(ctx, fmt.Sprintf("c-%v", i), func(ctx Context) { - defer func(){ + defer func() { // Trigger no-longer-valid context access within deferred function. // At this point deferred function should not continue and will be exited. getState(ctx) diff --git a/internal/internal_decision_state_machine.go b/internal/internal_decision_state_machine.go index 479dad0bb..4c375a3b7 100644 --- a/internal/internal_decision_state_machine.go +++ b/internal/internal_decision_state_machine.go @@ -23,7 +23,8 @@ package internal import ( "container/list" "fmt" - s "go.uber.org/cadence/.gen/go/shared" + + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/util" ) diff --git a/internal/internal_decision_state_machine_test.go b/internal/internal_decision_state_machine_test.go index 6e8014205..6fb70c9c3 100644 --- a/internal/internal_decision_state_machine_test.go +++ b/internal/internal_decision_state_machine_test.go @@ -24,7 +24,7 @@ import ( "testing" "github.com/stretchr/testify/require" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" ) diff --git a/internal/internal_event_handlers.go b/internal/internal_event_handlers.go index f77528308..a236f678f 100644 --- a/internal/internal_event_handlers.go +++ b/internal/internal_event_handlers.go @@ -33,8 +33,8 @@ import ( "github.com/opentracing/opentracing-go" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/shared" - m "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" + m "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/metrics" "go.uber.org/zap" diff --git a/internal/internal_event_handlers_test.go b/internal/internal_event_handlers_test.go index ea9570130..5064ede49 100644 --- a/internal/internal_event_handlers_test.go +++ b/internal/internal_event_handlers_test.go @@ -26,7 +26,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/zap" "go.uber.org/zap/zapcore" "go.uber.org/zap/zaptest/observer" diff --git a/internal/internal_pressure_points.go b/internal/internal_pressure_points.go index 4d0c8a830..af65fda05 100644 --- a/internal/internal_pressure_points.go +++ b/internal/internal_pressure_points.go @@ -27,7 +27,7 @@ import ( "strconv" "time" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" "go.uber.org/zap" ) diff --git a/internal/internal_public.go b/internal/internal_public.go index 6e2d85fd4..7b3c2c542 100644 --- a/internal/internal_public.go +++ b/internal/internal_public.go @@ -30,7 +30,7 @@ package internal import ( "time" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" ) type ( diff --git a/internal/internal_retry.go b/internal/internal_retry.go index 56918e2c6..4f932557d 100644 --- a/internal/internal_retry.go +++ b/internal/internal_retry.go @@ -26,7 +26,7 @@ import ( "context" "time" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common/backoff" ) diff --git a/internal/internal_task_handlers.go b/internal/internal_task_handlers.go index 8a907bc54..3ff60e124 100644 --- a/internal/internal_task_handlers.go +++ b/internal/internal_task_handlers.go @@ -36,8 +36,8 @@ import ( "time" "github.com/opentracing/opentracing-go" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - s "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/backoff" "go.uber.org/cadence/internal/common/cache" diff --git a/internal/internal_task_handlers_interfaces_test.go b/internal/internal_task_handlers_interfaces_test.go index 3ff7615d8..783ea990b 100644 --- a/internal/internal_task_handlers_interfaces_test.go +++ b/internal/internal_task_handlers_interfaces_test.go @@ -27,8 +27,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/suite" "github.com/uber/tchannel-go/thrift" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - m "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + m "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "golang.org/x/net/context" ) diff --git a/internal/internal_task_handlers_test.go b/internal/internal_task_handlers_test.go index 42b52ca63..ae69b81c3 100644 --- a/internal/internal_task_handlers_test.go +++ b/internal/internal_task_handlers_test.go @@ -37,8 +37,8 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - s "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/zap" ) diff --git a/internal/internal_task_pollers.go b/internal/internal_task_pollers.go index 24af1a733..6d7d37969 100644 --- a/internal/internal_task_pollers.go +++ b/internal/internal_task_pollers.go @@ -32,8 +32,8 @@ import ( "github.com/opentracing/opentracing-go" "github.com/pborman/uuid" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - s "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/backoff" "go.uber.org/cadence/internal/common/metrics" diff --git a/internal/internal_utils.go b/internal/internal_utils.go index 4eba287c6..317db785d 100644 --- a/internal/internal_utils.go +++ b/internal/internal_utils.go @@ -33,7 +33,7 @@ import ( "time" "github.com/uber-go/tally" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/metrics" "go.uber.org/yarpc" diff --git a/internal/internal_utils_test.go b/internal/internal_utils_test.go index ce986fb0f..3a76c6aad 100644 --- a/internal/internal_utils_test.go +++ b/internal/internal_utils_test.go @@ -26,7 +26,7 @@ import ( "time" "github.com/stretchr/testify/require" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" ) func TestChannelBuilderOptions(t *testing.T) { diff --git a/internal/internal_worker.go b/internal/internal_worker.go index 466fb98cf..32ea6add4 100644 --- a/internal/internal_worker.go +++ b/internal/internal_worker.go @@ -41,8 +41,8 @@ import ( "github.com/opentracing/opentracing-go" "github.com/pborman/uuid" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common/backoff" "go.uber.org/cadence/internal/common/metrics" "go.uber.org/cadence/internal/common/util" diff --git a/internal/internal_worker_base.go b/internal/internal_worker_base.go index bb41a789a..6230e980a 100644 --- a/internal/internal_worker_base.go +++ b/internal/internal_worker_base.go @@ -33,7 +33,7 @@ import ( "time" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common/backoff" "go.uber.org/cadence/internal/common/metrics" "go.uber.org/zap" diff --git a/internal/internal_worker_interfaces_test.go b/internal/internal_worker_interfaces_test.go index 06b05f15c..18c07e312 100644 --- a/internal/internal_worker_interfaces_test.go +++ b/internal/internal_worker_interfaces_test.go @@ -30,8 +30,8 @@ import ( "github.com/golang/mock/gomock" "github.com/opentracing/opentracing-go" "github.com/stretchr/testify/suite" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - m "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + m "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/zap" ) diff --git a/internal/internal_worker_test.go b/internal/internal_worker_test.go index c799a0559..b9a2199df 100644 --- a/internal/internal_worker_test.go +++ b/internal/internal_worker_test.go @@ -37,8 +37,8 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/yarpc" "go.uber.org/zap" diff --git a/internal/internal_workers_test.go b/internal/internal_workers_test.go index f8773b54a..0890fbe86 100644 --- a/internal/internal_workers_test.go +++ b/internal/internal_workers_test.go @@ -31,8 +31,8 @@ import ( "github.com/pborman/uuid" log "github.com/sirupsen/logrus" "github.com/stretchr/testify/suite" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - m "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + m "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/yarpc" "go.uber.org/zap" diff --git a/internal/internal_workflow.go b/internal/internal_workflow.go index 213ddf834..8ed704b8b 100644 --- a/internal/internal_workflow.go +++ b/internal/internal_workflow.go @@ -35,8 +35,8 @@ import ( "github.com/robfig/cron" "go.uber.org/atomic" - "go.uber.org/cadence/.gen/go/shared" - s "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/metrics" "go.uber.org/cadence/internal/common/util" diff --git a/internal/internal_workflow_client.go b/internal/internal_workflow_client.go index ed6f71b57..fc38efbb6 100644 --- a/internal/internal_workflow_client.go +++ b/internal/internal_workflow_client.go @@ -26,16 +26,17 @@ import ( "encoding/json" "errors" "fmt" - "go.uber.org/cadence/internal/common/serializer" "reflect" "time" + "go.uber.org/cadence/internal/common/serializer" + "github.com/opentracing/opentracing-go" "github.com/pborman/uuid" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - s "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/backoff" "go.uber.org/cadence/internal/common/metrics" diff --git a/internal/internal_workflow_client_test.go b/internal/internal_workflow_client_test.go index dc9dcae06..9da720bc4 100644 --- a/internal/internal_workflow_client_test.go +++ b/internal/internal_workflow_client_test.go @@ -24,14 +24,15 @@ import ( "encoding/json" "errors" "fmt" - "go.uber.org/cadence/internal/common/serializer" "log" "os" "testing" "time" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/internal/common/serializer" + + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "github.com/golang/mock/gomock" diff --git a/internal/internal_workflow_testsuite.go b/internal/internal_workflow_testsuite.go index 1e808b9ea..a53467e81 100644 --- a/internal/internal_workflow_testsuite.go +++ b/internal/internal_workflow_testsuite.go @@ -36,9 +36,9 @@ import ( "github.com/robfig/cron" "github.com/stretchr/testify/mock" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/metrics" "go.uber.org/yarpc" diff --git a/internal/internal_workflow_testsuite_test.go b/internal/internal_workflow_testsuite_test.go index 5d2e02f6b..394671f02 100644 --- a/internal/internal_workflow_testsuite_test.go +++ b/internal/internal_workflow_testsuite_test.go @@ -33,7 +33,7 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/zap" ) diff --git a/internal/query_builder.go b/internal/query_builder.go index 2865fc6d4..799b71ceb 100644 --- a/internal/query_builder.go +++ b/internal/query_builder.go @@ -1,3 +1,23 @@ +// Copyright (c) 2017-2021 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. + package internal import ( @@ -6,7 +26,7 @@ import ( "strings" "time" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" ) type ( diff --git a/internal/query_builder_test.go b/internal/query_builder_test.go index ccb2a7d9a..b0cb89e6a 100644 --- a/internal/query_builder_test.go +++ b/internal/query_builder_test.go @@ -1,3 +1,23 @@ +// Copyright (c) 2017-2021 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. + package internal import ( diff --git a/internal/tracer_test.go b/internal/tracer_test.go index 76fcf820f..33e06e193 100644 --- a/internal/tracer_test.go +++ b/internal/tracer_test.go @@ -28,7 +28,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" jaeger_config "github.com/uber/jaeger-client-go/config" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/zap" ) diff --git a/internal/worker.go b/internal/worker.go index dc9f1584f..f7e94a9f0 100644 --- a/internal/worker.go +++ b/internal/worker.go @@ -27,8 +27,8 @@ import ( "github.com/opentracing/opentracing-go" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/zap" ) diff --git a/internal/workflow.go b/internal/workflow.go index 4e1bb863e..05cbf14d1 100644 --- a/internal/workflow.go +++ b/internal/workflow.go @@ -29,7 +29,7 @@ import ( "time" "github.com/uber-go/tally" - s "go.uber.org/cadence/.gen/go/shared" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/backoff" "go.uber.org/zap" diff --git a/internal/workflow_replayer.go b/internal/workflow_replayer.go index 74699c533..3ada21560 100644 --- a/internal/workflow_replayer.go +++ b/internal/workflow_replayer.go @@ -32,9 +32,9 @@ import ( "github.com/golang/mock/gomock" "github.com/pborman/uuid" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal/common" "go.uber.org/cadence/internal/common/serializer" "go.uber.org/zap" diff --git a/internal/workflow_testsuite.go b/internal/workflow_testsuite.go index e4f0474b4..4853ad9d8 100644 --- a/internal/workflow_testsuite.go +++ b/internal/workflow_testsuite.go @@ -29,7 +29,7 @@ import ( "github.com/stretchr/testify/mock" "github.com/uber-go/tally" - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/zap" ) diff --git a/mocks/Client.go b/mocks/Client.go index fbd2410e5..3c5cc8c59 100644 --- a/mocks/Client.go +++ b/mocks/Client.go @@ -28,10 +28,10 @@ import ( "github.com/stretchr/testify/mock" - "go.uber.org/cadence/.gen/go/shared" - s "go.uber.org/cadence/.gen/go/shared" "go.uber.org/cadence/client" "go.uber.org/cadence/encoded" + "go.uber.org/cadence/gen/thrift/shared" + s "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal" "go.uber.org/cadence/workflow" ) @@ -376,7 +376,7 @@ func (_m *Client) QueryWorkflowWithOptions(ctx context.Context, request *client. return r0, r1 } -func (_m *Client) ResetWorkflow(ctx context.Context, request *s.ResetWorkflowExecutionRequest) (*s.ResetWorkflowExecutionResponse, error){ +func (_m *Client) ResetWorkflow(ctx context.Context, request *s.ResetWorkflowExecutionRequest) (*s.ResetWorkflowExecutionResponse, error) { var _ca []interface{} _ca = append(_ca, ctx, request) ret := _m.Called(_ca...) diff --git a/mocks/DomainClient.go b/mocks/DomainClient.go index b993594fa..afb7fa53c 100644 --- a/mocks/DomainClient.go +++ b/mocks/DomainClient.go @@ -21,9 +21,12 @@ // Code generated by mockery v1.0.0 package mocks -import context "context" -import mock "github.com/stretchr/testify/mock" -import shared "go.uber.org/cadence/.gen/go/shared" +import ( + context "context" + + mock "github.com/stretchr/testify/mock" + shared "go.uber.org/cadence/gen/thrift/shared" +) // DomainClient is an autogenerated mock type for the DomainClient type type DomainClient struct { diff --git a/mocks/HistoryEventIterator.go b/mocks/HistoryEventIterator.go index e9af182a9..70dd7424d 100644 --- a/mocks/HistoryEventIterator.go +++ b/mocks/HistoryEventIterator.go @@ -22,7 +22,7 @@ package mocks import mock "github.com/stretchr/testify/mock" -import shared "go.uber.org/cadence/.gen/go/shared" +import shared "go.uber.org/cadence/gen/thrift/shared" // HistoryEventIterator is an autogenerated mock type for the HistoryEventIterator type type HistoryEventIterator struct { diff --git a/mocks/mock_test.go b/mocks/mock_test.go index 8495c3587..310acea66 100644 --- a/mocks/mock_test.go +++ b/mocks/mock_test.go @@ -22,9 +22,10 @@ package mocks import ( "context" - "go.uber.org/cadence/.gen/go/shared" "testing" + "go.uber.org/cadence/gen/thrift/shared" + "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" "go.uber.org/cadence/client" diff --git a/test/integration_test.go b/test/integration_test.go index b84b559c2..8dcc78a14 100644 --- a/test/integration_test.go +++ b/test/integration_test.go @@ -34,8 +34,8 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" "go.uber.org/cadence" - "go.uber.org/cadence/.gen/go/shared" "go.uber.org/cadence/client" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/interceptors" "go.uber.org/cadence/worker" "go.uber.org/cadence/workflow" diff --git a/test/replaytests/reply_test.go b/test/replaytests/reply_test.go index ec54c1994..63c4b7d4f 100644 --- a/test/replaytests/reply_test.go +++ b/test/replaytests/reply_test.go @@ -26,7 +26,7 @@ import ( "github.com/golang/mock/gomock" "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "go.uber.org/cadence/.gen/go/cadence/workflowservicetest" + "go.uber.org/cadence/gen/thrift/cadence/workflowservicetest" "go.uber.org/cadence/worker" "go.uber.org/zap" ) diff --git a/test/test_utils.go b/test/test_utils.go index 5f6957b2d..a6575e144 100644 --- a/test/test_utils.go +++ b/test/test_utils.go @@ -30,7 +30,7 @@ import ( "go.uber.org/yarpc" "go.uber.org/yarpc/transport/tchannel" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" "go.uber.org/cadence/workflow" ) diff --git a/test/workflow_test.go b/test/workflow_test.go index dded18a9b..b05deed03 100644 --- a/test/workflow_test.go +++ b/test/workflow_test.go @@ -28,8 +28,8 @@ import ( "time" "go.uber.org/cadence" - "go.uber.org/cadence/.gen/go/shared" "go.uber.org/cadence/client" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal" "go.uber.org/cadence/worker" "go.uber.org/cadence/workflow" diff --git a/worker/worker.go b/worker/worker.go index 6faef4403..4857cce01 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -25,9 +25,9 @@ package worker import ( "context" - "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient" - "go.uber.org/cadence/.gen/go/shared" "go.uber.org/cadence/activity" + "go.uber.org/cadence/gen/thrift/cadence/workflowserviceclient" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal" "go.uber.org/cadence/workflow" "go.uber.org/zap" @@ -48,7 +48,6 @@ type ( Stop() } - // Registry exposes registration functions to consumers. Registry interface { WorkflowRegistry diff --git a/workflow/error.go b/workflow/error.go index 4dc1bdda0..45f820131 100644 --- a/workflow/error.go +++ b/workflow/error.go @@ -21,7 +21,7 @@ package workflow import ( - "go.uber.org/cadence/.gen/go/shared" + "go.uber.org/cadence/gen/thrift/shared" "go.uber.org/cadence/internal" )