Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 385 for symlink1 (0.15 sec)

  1. src/cmd/go/testdata/script/mod_tidy_symlink_issue35941.txt

    env GO111MODULE=on
    [!symlink] skip
    
    cd m
    symlink symlink -> ../outside
    
    cp go.mod go.mod.orig
    
    # Issue 35941: suppress symlink warnings when running 'go mod tidy'.
    # 'go mod tidy' should not scan packages in symlinked subdirectories.
    go mod tidy
    ! stderr 'warning: ignoring symlink'
    cmp go.mod go.mod.orig
    
    ! go build ./symlink
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 27 18:17:01 UTC 2021
    - 898 bytes
    - Viewed (0)
  2. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy

            expect:
            fs.chmod(tmpDir.createFile("someFile"), 0644)
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "can create symlink on platforms that support symlinks"() {
            def target = tmpDir.createFile("target.txt")
            def link = tmpDir.file("link.txt")
    
            when:
            fs.createSymbolicLink(link, target)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildSymlinkHandlingIntegrationTest.groovy

    import java.nio.file.Files
    import java.nio.file.StandardCopyOption
    
    @Requires(UnitTestPreconditions.Symlinks)
    class IncrementalBuildSymlinkHandlingIntegrationTest extends AbstractIntegrationSpec implements ValidationMessageChecker {
        def setup() {
            expectReindentedValidationMessage()
    
            // Must run on isolated daemons so that symlink data can be properly cleaned up between builds
            executer.requireDaemon()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 14:30:36 UTC 2024
    - 8K bytes
    - Viewed (0)
  4. pkg/volume/util/subpath/subpath_linux.go

    	// Evaluate all symlinks here once for all subsequent functions.
    	newVolumePath, err := filepath.EvalSymlinks(subpath.VolumePath)
    	if err != nil {
    		return "", fmt.Errorf("error resolving symlinks in %q: %v", subpath.VolumePath, err)
    	}
    	newPath, err := filepath.EvalSymlinks(subpath.Path)
    	if err != nil {
    		return "", fmt.Errorf("error resolving symlinks in %q: %v", subpath.Path, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/fingerprint/impl/BrokenSymlinkNormalizationStrategyTest.groovy

            strategy << allFingerprintingStrategies
            strategyName = getStrategyName(strategy)
        }
    
        def "non-root broken symlink is fingerprinted as missing for #strategyName"() {
            given:
            def root = file('root')
            root.mkdirs()
            def brokenSymlink = root.file('broken-symlink')
            brokenSymlink.createLink(file('non-existing'))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. cmd/os-readdir_test.go

    			t.Fatalf("Unable to create a file, %s", err)
    		}
    		// Symlink will not be added to entries.
    		if err := os.Symlink(filepath.Join(dir, name1), filepath.Join(dir, name2)); err != nil {
    			t.Fatalf("Unable to create a symlink, %s", err)
    		}
    		// Add to entries.
    		entries = append(entries, name1)
    		// Symlinks are preserved for regular files
    		entries = append(entries, name2)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  7. pkg/volume/util/subpath/subpath_windows.go

    	return nil
    }
    
    // SafeMakeDir makes sure that the created directory does not escape given base directory mis-using symlinks.
    func (sp *subpath) SafeMakeDir(subdir string, base string, perm os.FileMode) error {
    	realBase, err := evalSymlink(base)
    	if err != nil {
    		return fmt.Errorf("error resolving symlinks in %s: %s", base, err)
    	}
    
    	realFullPath := filepath.Join(realBase, subdir)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/build_cwd_newline.txt

    # Since we do preserve $PWD (or set it appropriately) for commands, and we do
    # not resolve symlinks unnecessarily, referring to the contents of the unsafe
    # directory via a safe symlink should be ok, and should not inject the data from
    # the symlink target path.
    
    [!symlink] stop 'remainder of test checks symlink behavior'
    [short] stop 'links and runs binaries'
    
    symlink $WORK${/}link -> $DIR
    
    [cgo] go run $WORK${/}link${/}main.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/FileSystemLocationSnapshot.java

         * hierarchy containing a symlink, as we can't be sure if the snapshot would still be valid of
         * the relocated link.
         *
         * If performance around symlinks becomes more important, we can improve this in multiple ways:
         * - keep symlinks that don't point outside the relocated snapshot hierarchy,
         * - re-snapshot relocated locations pointed to by snapshots,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 15:09:45 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/cgotest/overlaydir.go

    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always copy directories (don't symlink them).
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    		if err := os.Symlink(srcPath, dstPath); err == nil {
    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top