Skip to content

[GO] Directory casing problem for MERAKI.COM api #7828

Closed

Description

Found as part of #7774:

Using the source code from 2026-06-17 and this command:

.\it\generate-code.ps1 -descriptionUrl https://raw.githubusercontent.com/meraki/openapi/refs/heads/master/openapi/spec3.json -language go -dev
.\it\exec-cmd.ps1 -descriptionUrl https://raw.githubusercontent.com/meraki/openapi/refs/heads/master/openapi/spec3.json -language go

The generated client does not compile in Github CI (but works on Windows):

Error: client/devices/item_switch_routing_interfaces_request_builder.go:9:5: package integrationtest/client/devices/item/switchEscaped/routing/interfaces is not in std (/opt/hostedtoolcache/go/1.25.11/x64/src/integrationtest/client/devices/item/switchEscaped/routing/interfaces)
Error: client/networks/item_switch_stacks_item_routing_interfaces_request_builder.go:9:5: package integrationtest/client/networks/item/switchEscaped/stacks/item/routing/interfaces is not in std (/opt/hostedtoolcache/go/1.25.11/x64/src/integrationtest/client/networks/item/switchEscaped/stacks/item/routing/interfaces)
Error: client/devices/item_switch_routing_interfaces_request_builder.go:9:5: package integrationtest/client/devices/item/switchEscaped/routing/interfaces is not in std (/opt/hostedtoolcache/go/1.25.11/x64/src/integrationtest/client/devices/item/switchEscaped/routing/interfaces)
Error: client/networks/item_switch_stacks_item_routing_interfaces_request_builder.go:9:5: package integrationtest/client/networks/item/switchEscaped/stacks/item/routing/interfaces is not in std (/opt/hostedtoolcache/go/1.25.11/x64/src/integrationtest/client/networks/item/switchEscaped/stacks/item/routing/interfaces)

The reason is probably that "client\devices\item_switch_routing_interfaces_request_builder.go" contains this line:

package devices

import (
    "context"
    i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
    i27a8f66341ece65e3f56f9b82c7d85aebb2c21c93168814e2476c490c8d4199c "integrationtest/client/devices/item/switchEscaped/routing/interfaces"
)

But the path on disc is "client\devices\item\switchescaped\routing\interfaces".

Notice the "switchEscaped" vs "switchescaped" directory name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done ✔️

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions