mirror of
				https://github.com/beego/bee.git
				synced 2025-10-31 07:23:22 +00:00 
			
		
		
		
	
							
								
								
									
										12
									
								
								apiapp.go
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								apiapp.go
									
									
									
									
									
								
							| @@ -655,9 +655,17 @@ func checkEnv(appname string) (apppath, packpath string, err error) { | |||||||
| 	haspath := false | 	haspath := false | ||||||
| 	wgopath := path.SplitList(gopath) | 	wgopath := path.SplitList(gopath) | ||||||
| 	for _, wg := range wgopath { | 	for _, wg := range wgopath { | ||||||
| 		wg, _ = path.EvalSymlinks(path.Join(wg, "src")) | 		wg = path.Join(wg, "src") | ||||||
|  |  | ||||||
| 		if path.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { | 		if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { | ||||||
|  | 			haspath = true | ||||||
|  | 			appsrcpath = wg | ||||||
|  | 			break | ||||||
|  | 		} | ||||||
|  |  | ||||||
|  | 		wg, _ = path.EvalSymlinks(wg) | ||||||
|  |  | ||||||
|  | 		if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { | ||||||
| 			haspath = true | 			haspath = true | ||||||
| 			appsrcpath = wg | 			appsrcpath = wg | ||||||
| 			break | 			break | ||||||
|   | |||||||
							
								
								
									
										12
									
								
								new.go
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								new.go
									
									
									
									
									
								
							| @@ -73,13 +73,23 @@ func createApp(cmd *Command, args []string) int { | |||||||
|  |  | ||||||
| 	wgopath := path.SplitList(gopath) | 	wgopath := path.SplitList(gopath) | ||||||
| 	for _, wg := range wgopath { | 	for _, wg := range wgopath { | ||||||
| 		wg, _ = path.EvalSymlinks(path.Join(wg, "src")) |  | ||||||
|  | 		wg = path.Join(wg, "src") | ||||||
|  |  | ||||||
| 		if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { | 		if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { | ||||||
| 			haspath = true | 			haspath = true | ||||||
| 			appsrcpath = wg | 			appsrcpath = wg | ||||||
| 			break | 			break | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
|  | 		wg, _ = path.EvalSymlinks(wg) | ||||||
|  |  | ||||||
|  | 		if strings.HasPrefix(strings.ToLower(curpath), strings.ToLower(wg)) { | ||||||
|  | 			haspath = true | ||||||
|  | 			appsrcpath = wg | ||||||
|  | 			break | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if !haspath { | 	if !haspath { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 astaxie
					astaxie