-
Notifications
You must be signed in to change notification settings - Fork 6
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
file name too long repeats #364
Comments
Hi @universam1 |
Hi @baywet , thanks for checking back! I put a simple scenario together that replicates the problem on my machine, Ubuntu 23.10 using Podman. Not sure if that holds true for Docker though. podman run -it --rm -w /tmp golang:1.21-alpine ash -c '
mkdir /src
cd /src
cat <<EOF > go.mod
module test
go 1.21
require ()
EOF
cat <<EOF > main.go
package main
import (
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
"github.com/microsoftgraph/msgraph-beta-sdk-go/models"
"github.com/microsoftgraph/msgraph-beta-sdk-go/sites"
)
func main() {
fmt.Println("Hello, World!")
}
EOF
go mod tidy
' That results in go: downloading github.com/microsoftgraph/msgraph-beta-sdk-go v0.88.0
-> unzip /go/pkg/mod/cache/download/github.com/microsoftgraph/msgraph-beta-sdk-go/@v/v0.88.0.zip: open /go/pkg/mod/github.com/microsoftgraph/[email protected]/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_resource_roles_item_access_package_resource_access_package_resource_scopes_item_access_package_resource_access_package_resource_roles_access_package_resource_role_item_request_builder.go: file name too long
go: test imports
github.com/microsoftgraph/msgraph-beta-sdk-go: unzip /go/pkg/mod/cache/download/github.com/microsoftgraph/msgraph-beta-sdk-go/@v/v0.88.0.zip: open /go/pkg/mod/github.com/microsoftgraph/[email protected]/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_resource_roles_item_access_package_resource_access_package_resource_scopes_item_access_package_resource_access_package_resource_roles_access_package_resource_role_item_request_builder.go: file name too long
go: test imports
github.com/microsoftgraph/msgraph-beta-sdk-go/models: unzip /go/pkg/mod/cache/download/github.com/microsoftgraph/msgraph-beta-sdk-go/@v/v0.88.0.zip: open /go/pkg/mod/github.com/microsoftgraph/[email protected]/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_resource_roles_item_access_package_resource_access_package_resource_scopes_item_access_package_resource_access_package_resource_roles_access_package_resource_role_item_request_builder.go: file name too long
go: test imports
github.com/microsoftgraph/msgraph-beta-sdk-go/sites: unzip /go/pkg/mod/cache/download/github.com/microsoftgraph/msgraph-beta-sdk-go/@v/v0.88.0.zip: open /go/pkg/mod/github.com/microsoftgraph/[email protected]/identitygovernance/entitlement_management_access_package_catalogs_item_access_package_resource_roles_item_access_package_resource_access_package_resource_scopes_item_access_package_resource_access_package_resource_roles_access_package_resource_role_item_request_builder.go: file name too long Hope that helps! |
Thanks for the repro here.
But that doesn't account for the fact that in most cases, people will already have some kind of prefix (project structure, location of package cache), for example: already 65 characters are used by the package cache conventions, also 20 characters are used by the main directory name (identitygovernance). ~85 total. With a safety margin, I'd recommend to reduce the number by 100, to 155. With that in mind, would you be willing to submit a pull request on the generator to address this? |
Thanks @baywet for your analyze, this sounds like the problem. Since I have no c# experience I would not dare to make this change, would you be able to? |
@rkodev can you take this over please? |
Hi @universam1, as of release 0.106.0 this issue should be resolved |
Issue #260 is not resolved yet, the error appears when run inside a container:
The text was updated successfully, but these errors were encountered: