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

fix the source code directory after the soft link #4425

Merged
merged 2 commits into from
Oct 19, 2024

Commits on Oct 19, 2024

  1. fix the source code directory after the soft link

    To solve the problem of the disk full of code, I used soft links to move the directory where the code is saved, but the import path of the code generated by goctl is wrong
    
    The problem occurs in tools/goctl/rpc/generator/mkdir.go SetPbDir()
    
    d.ctx.Dir calculates the absolute path
    pbDir does not calculate the absolute path
    strings.TrimPrefix tries to remove d.ctx.Dir from pbDir but does not get a match
    yangjinheng authored and kevwan committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    f5deae2 View commit details
    Browse the repository at this point in the history
  2. fix the source code directory after the soft link

    To solve the problem of the disk full of code, I used soft links to move the directory where the code is saved, but the import path of the code generated by goctl is wrong
    
    The problem occurs in tools/goctl/rpc/generator/mkdir.go SetPbDir()
    
    d.ctx.Dir calculates the absolute path
    pbDir does not calculate the absolute path
    strings.TrimPrefix tries to remove d.ctx.Dir from pbDir but does not get a match
    yangjinheng authored and kevwan committed Oct 19, 2024
    Configuration menu
    Copy the full SHA
    1f26ae1 View commit details
    Browse the repository at this point in the history