Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DropToolchainStmt (0.21 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/work.go

    // DropGoStmt deletes the go statement from the file.
    func (f *WorkFile) DropGoStmt() {
    	if f.Go != nil {
    		f.Go.Syntax.markRemoved()
    		f.Go = nil
    	}
    }
    
    // DropToolchainStmt deletes the toolchain statement from the file.
    func (f *WorkFile) DropToolchainStmt() {
    	if f.Toolchain != nil {
    		f.Toolchain.Syntax.markRemoved()
    		f.Toolchain = nil
    	}
    }
    
    // AddGodebug sets the first godebug line for key to value,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/workcmd/edit.go

    		workFile.DropGoStmt()
    	} else if *editGo != "" {
    		if err := workFile.AddGoStmt(*editGo); err != nil {
    			base.Fatalf("go: internal error: %v", err)
    		}
    	}
    	if *editToolchain == "none" {
    		workFile.DropToolchainStmt()
    	} else if *editToolchain != "" {
    		if err := workFile.AddToolchainStmt(*editToolchain); err != nil {
    			base.Fatalf("go: internal error: %v", err)
    		}
    	}
    
    	if len(workedits) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modcmd/edit.go

    		modFile.DropGoStmt()
    	} else if *editGo != "" {
    		if err := modFile.AddGoStmt(*editGo); err != nil {
    			base.Fatalf("go: internal error: %v", err)
    		}
    	}
    	if *editToolchain == "none" {
    		modFile.DropToolchainStmt()
    	} else if *editToolchain != "" {
    		if err := modFile.AddToolchainStmt(*editToolchain); err != nil {
    			base.Fatalf("go: internal error: %v", err)
    		}
    	}
    
    	if len(edits) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    // DropGoStmt deletes the go statement from the file.
    func (f *File) DropGoStmt() {
    	if f.Go != nil {
    		f.Go.Syntax.markRemoved()
    		f.Go = nil
    	}
    }
    
    // DropToolchainStmt deletes the toolchain statement from the file.
    func (f *File) DropToolchainStmt() {
    	if f.Toolchain != nil {
    		f.Toolchain.Syntax.markRemoved()
    		f.Toolchain = nil
    	}
    }
    
    func (f *File) AddToolchainStmt(name string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/init.go

    	// or if it is asking for a toolchain older than Go 1.21,
    	// which will not understand the toolchain line.
    	if toolchain == "go"+goVers || gover.Compare(gover.FromToolchain(toolchain), gover.GoStrictVersion) < 0 {
    		wf.DropToolchainStmt()
    	} else {
    		wf.AddToolchainStmt(toolchain)
    	}
    	return true
    }
    
    // UpdateWorkFile updates comments on directory directives in the go.work
    // file to include the associated module path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top