Skip to content

Installation instruction doesn't work due to replace line in cmd/soap/go.mod #14

Description

@justinclift-prvidr

Attempted to install this using the one-line installation instruction in the README:

$ go install github.com/way-platform/soap-go/cmd/soap@latest
go: github.com/way-platform/soap-go/cmd/soap@latest (in github.com/way-platform/soap-go/cmd/soap@v0.0.0-20260322200016-b2fdbaebf79c):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

This error is caused by the existence of a replace line in the go.mod file in the cmd/soap/ folder:

replace github.com/way-platform/soap-go => ../../

Probably the best fix for this is to simply nuke the go.mod & go.sum files from that cmd/soap/ subdirectory, as they don't seem to be adding anything.

I've made this change in my temporary fork to demonstrate this works: https://github.com/justinclift-prvidr/soap-go

ie:

$ go install github.com/justinclift-prvidr/soap-go/cmd/soap@latest
$ soap --help

  Multi-tool for SOAP APIs                                                                                              
         
  USAGE  
         
    soap [command] [--flags]  
                   
  CODE GENERATION  
                   
    gen [--flags]         Generate code for a SOAP API
                 
  DOCUMENTATION  
                 
    doc [--flags]         Display documentation for a SOAP API
                      
  NETWORK OPERATIONS  
                      
    call [--flags]        Call a SOAP action
         
  UTILS  
         
    completion [command]  Generate the autocompletion script for the specified shell
    help [command]        Help about any command
         
  FLAGS  
         
    -h --help             Help for soap
    -v --version          Version for soap

Activity

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions