-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: trimpath gcflag not trimming anything #30696
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
Comments
Is there a way that we can recreate what you are seeing? When I try simple test cases it works as expected for me. Thanks. |
@ianlancetaylor - What simple cases are you checking against? I can reproduce this with this code. This occurs when there are dependencies. Otherwise it behaves correctly, unless Im not understanding the flag correctly. package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
)
func main() {
fmt.Println(aws.String("Hello world!"))
} I then build it like so /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/errors.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/endpoints/endpoints.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/credentials/shared_credentials_provider.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/credentials/env_provider.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/credentials/chain_provider.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/credentials/static_provider.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/credentials/credentials.go /home/xibz/go/src/github.com/aws/aws-sdk-go/internal/ini/ini_parser.go /home/xibz/go/src/github.com/aws/aws-sdk-go/internal/ini/empty_token.go /home/xibz/go/src/github.com/aws/aws-sdk-go/internal/ini/literal_tokens.go /home/xibz/go/src/github.com/aws/aws-sdk-go/internal/ini/ini_lexer.go /home/xibz/go/src/github.com/aws/aws-sdk-go/internal/ini/ast.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/awserr/types.go /home/xibz/go/src/github.com/aws/aws-sdk-go/aws/awserr/error.go |
Try |
@AlexRouSg - That did it! Thanks :). Closing |
What version of Go are you using (
go version
)?v1.12.0
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: