Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues after go files are created #2

Open
NagWolf opened this issue Feb 20, 2024 · 3 comments
Open

Issues after go files are created #2

NagWolf opened this issue Feb 20, 2024 · 3 comments

Comments

@NagWolf
Copy link

NagWolf commented Feb 20, 2024

[{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import github.com/hashicorp/terraform-plugin-sdk/v2/diag (cannot find package "github.com/hashicorp/terraform-plugin-sdk/v2/diag" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 6,
"startColumn": 2,
"endLineNumber": 6,
"endColumn": 53
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema (cannot find package "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 7,
"startColumn": 2,
"endLineNumber": 7,
"endColumn": 62
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import github.com/mypurecloud/platform-client-sdk-go/v119/platformclientv2 (cannot find package "github.com/mypurecloud/platform-client-sdk-go/v119/platformclientv2" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 8,
"startColumn": 2,
"endLineNumber": 8,
"endColumn": 71
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import terraform-provider-genesyscloud/genesyscloud/resource_exporter (cannot find package "terraform-provider-genesyscloud/genesyscloud/resource_exporter" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 10,
"startColumn": 19,
"endLineNumber": 10,
"endColumn": 83
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"external": "https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#BrokenImport",
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import terraform-provider-genesyscloud/genesyscloud/consistency_checker (cannot find package "terraform-provider-genesyscloud/genesyscloud/consistency_checker" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 13,
"startColumn": 2,
"endLineNumber": 13,
"endColumn": 68
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import terraform-provider-genesyscloud/genesyscloud (cannot find package "terraform-provider-genesyscloud/genesyscloud" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 15,
"startColumn": 9,
"endLineNumber": 15,
"endColumn": 55
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import terraform-provider-genesyscloud/genesyscloud/util/resourcedata (cannot find package "terraform-provider-genesyscloud/genesyscloud/util/resourcedata" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 17,
"startColumn": 2,
"endLineNumber": 17,
"endColumn": 66
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "BrokenImport",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "BrokenImport"
}
},
"severity": 8,
"message": "could not import github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry (cannot find package "github.com/hashicorp/terraform-plugin-sdk/v2/helper/retry" in GOROOT or GOPATH)",
"source": "compiler",
"startLineNumber": 19,
"startColumn": 2,
"endLineNumber": 19,
"endColumn": 61
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: newOutboundCallabletimesetProxy",
"source": "compiler",
"startLineNumber": 28,
"startColumn": 11,
"endLineNumber": 28,
"endColumn": 42
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: getOutboundCallabletimesetProxy",
"source": "compiler",
"startLineNumber": 46,
"startColumn": 11,
"endLineNumber": 46,
"endColumn": 42
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: getOutboundCallabletimesetFromResourceData",
"source": "compiler",
"startLineNumber": 48,
"startColumn": 29,
"endLineNumber": 48,
"endColumn": 71
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: getOutboundCallabletimesetProxy",
"source": "compiler",
"startLineNumber": 64,
"startColumn": 11,
"endLineNumber": 64,
"endColumn": 42
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: ResourceOutboundCallabletimeset",
"source": "compiler",
"startLineNumber": 77,
"startColumn": 63,
"endLineNumber": 77,
"endColumn": 94
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: flattenCallableTimes",
"source": "compiler",
"startLineNumber": 80,
"startColumn": 111,
"endLineNumber": 80,
"endColumn": 131
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: getOutboundCallabletimesetProxy",
"source": "compiler",
"startLineNumber": 90,
"startColumn": 11,
"endLineNumber": 90,
"endColumn": 42
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: getOutboundCallabletimesetFromResourceData",
"source": "compiler",
"startLineNumber": 92,
"startColumn": 29,
"endLineNumber": 92,
"endColumn": 71
},{
"resource": "/c:/Users/Abrie/OneDrive - NoraLogix/Genesys cloud automation/Genesys Cloud Skeleton resource generater/output/outbound_callabletimeset/resource_genesyscloud_outbound_callabletimeset.go",
"owner": "generated_diagnostic_collection_name#0",
"code": {
"value": "UndeclaredName",
"target": {
"$mid": 1,
"path": "/golang.org/x/tools/internal/typesinternal",
"scheme": "https",
"authority": "pkg.go.dev",
"fragment": "UndeclaredName"
}
},
"severity": 8,
"message": "undefined: getOutboundCallabletimesetProxy",
"source": "compiler",
"startLineNumber": 107,
"startColumn": 11,
"endLineNumber": 107,
"endColumn": 42
}]

@NagWolf NagWolf changed the title Issues after go giles are created Issues after go files are created Feb 20, 2024
@dginty4
Copy link
Collaborator

dginty4 commented Apr 8, 2024

@NagWolf sorry it too so long to see this, what operating system are you using? Would you also be able to provide the config file you used for this run

@NagWolf
Copy link
Author

NagWolf commented Apr 8, 2024

Hi @dginty4

I am using windows and here is the config file code
`package: outbound_callabletimeset
mainObject: CallableTimeSet
operations:

  • type: create
    method: POST
    path: /api/v2/outbound/callabletimesets

  • type: read
    method: GET
    path: /api/v2/outbound/callabletimesets/{callableTimeSetId}

  • type: update
    method: PUT
    path: /api/v2/outbound/callabletimesets/{callableTimeSetId}

  • type: delete
    method: DELETE
    path: /api/v2/outbound/callabletimesets/{callableTimeSetId}

  • type: getAll
    method: GET
    path: /api/v2/outbound/callabletimesets

    testFiles: true # Generate resource and data source test files
    initTest: true # Generate init test file
    documentation: true
    operations:

  • type: create
    method: POST
    path: /api/v2/outbound/callabletimesets
    link: https://developer.genesys.cloud/devapps/api-explorer#post-api-v2-outbound-callabletimesets`

@dginty4
Copy link
Collaborator

dginty4 commented Apr 10, 2024

Hi @NagWolf

Thank you, I will try to replicate this and get back you asap

Regards,
Declan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants