Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 228 for mkdtemp (0.1 sec)

  1. .github/workflows/maven_build_itself.yml

          - name: Extract tarball
            shell: bash
            run: |
              set +e
              if [ -f ${{ env.TAR_BALL }} ]; then
                temp_dir=$(mktemp -d)
                tar -xzf ${{ env.TAR_BALL }} -C "$temp_dir" --strip 1
                maven_bin_dir=$temp_dir/bin
                if [ -d $maven_bin_dir ]; then
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 03 17:58:28 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/cache_test.go

    package modfetch
    
    import (
    	"context"
    	"os"
    	"path/filepath"
    	"testing"
    )
    
    func TestWriteDiskCache(t *testing.T) {
    	ctx := context.Background()
    
    	tmpdir, err := os.MkdirTemp("", "go-writeCache-test-")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(tmpdir)
    
    	err = writeDiskCache(ctx, filepath.Join(tmpdir, "file"), []byte("data"))
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 19:33:59 UTC 2023
    - 536 bytes
    - Viewed (0)
  3. hack/lib/verify-generated.sh

        shift
    
        kube::util::ensure_clean_working_dir
    
        # This sets up the environment, like GOCACHE, which keeps the worktree cleaner.
        kube::golang::setup_env
    
        _tmpdir="$(kube::realpath "$(mktemp -d -t "verify-generated-$(basename "$1").XXXXXX")")"
        git worktree add -f -q "${_tmpdir}" HEAD
        kube::util::trap_add "git worktree remove -f ${_tmpdir}" EXIT
        cd "${_tmpdir}"
    
        # Update generated files.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 22 18:39:23 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv_notwin.go

    		// Perform a simple test to see whether the runtime
    		// supports symlinks or not. If we get a permission
    		// error, the runtime does not support symlinks.
    		dir, err := os.MkdirTemp("", "")
    		if err != nil {
    			return false, ""
    		}
    		defer func() {
    			_ = os.RemoveAll(dir)
    		}()
    		fpath := filepath.Join(dir, "testfile.txt")
    		if err := os.WriteFile(fpath, nil, 0644); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 05:22:00 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. common/scripts/gobuild.sh

        LDFLAGS=""
    fi
    
    # gather buildinfo if not already provided
    # For a release build BUILDINFO should be produced
    # at the beginning of the build and used throughout
    if [[ -z ${BUILDINFO} ]];then
        BUILDINFO=$(mktemp)
        "${SCRIPTPATH}/report_build_info.sh" > "${BUILDINFO}"
    fi
    
    # BUILD LD_EXTRAFLAGS
    LD_EXTRAFLAGS=""
    
    while read -r line; do
        LD_EXTRAFLAGS="${LD_EXTRAFLAGS} -X ${line}"
    done < "${BUILDINFO}"
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 21 14:08:46 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  6. buildscripts/verify-healing-with-root-disks.sh

    #!/bin/bash -e
    
    set -E
    set -o pipefail
    set -x
    
    if [ ! -x "$PWD/minio" ]; then
    	echo "minio executable binary not found in current directory"
    	exit 1
    fi
    
    WORK_DIR="$(mktemp -d)"
    MINIO_CONFIG_DIR="$WORK_DIR/.minio"
    MINIO=("$PWD/minio" --config-dir "$MINIO_CONFIG_DIR" server)
    
    function start_minio() {
    	start_port=$1
    
    	export MINIO_ROOT_USER=minio
    	export MINIO_ROOT_PASSWORD=minio123
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 26 05:07:25 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. samples/bookinfo/platform/kube/cleanup.sh

          kubectl delete -n "${NAMESPACE}" "$resource";
        done
      done
      kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo-versions.yaml" >/dev/null 2>&1
    fi
    
    OUTPUT=$(mktemp)
    export OUTPUT
    echo "Application cleanup may take up to one minute"
    kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo.yaml" > "${OUTPUT}" 2>&1
    ret=$?
    function cleanup() {
      rm -f "${OUTPUT}"
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  8. src/internal/testenv/testenv_windows.go

    package testenv
    
    import (
    	"os"
    	"path/filepath"
    	"sync"
    	"syscall"
    )
    
    var symlinkOnce sync.Once
    var winSymlinkErr error
    
    func initWinHasSymlink() {
    	tmpdir, err := os.MkdirTemp("", "symtest")
    	if err != nil {
    		panic("failed to create temp directory: " + err.Error())
    	}
    	defer os.RemoveAll(tmpdir)
    
    	err = os.Symlink("target", filepath.Join(tmpdir, "symlink"))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 1K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/riscv/asm_test.go

    // branch, in order to ensure that it assembles successfully.
    func TestLargeBranch(t *testing.T) {
    	if testing.Short() {
    		t.Skip("Skipping test in short mode")
    	}
    	testenv.MustHaveGoBuild(t)
    
    	dir, err := os.MkdirTemp("", "testlargebranch")
    	if err != nil {
    		t.Fatalf("Could not create directory: %v", err)
    	}
    	defer os.RemoveAll(dir)
    
    	// Generate a very large function.
    	buf := bytes.NewBuffer(make([]byte, 0, 7000000))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 01:50:18 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. ci/official/utilities/repack_libtensorflow.sh

    #
    # Arguments:
    #   src_jar - path to the original srcjar
    #   dest_jar - path to the destination
    # Returns:
    #   None
    function cp_normalized_srcjar() {
      src_jar="$1"
      dest_jar="$2"
      tmp_dir=$(mktemp -d)
      cp "${src_jar}" "${tmp_dir}/orig.jar"
      pushd "${tmp_dir}"
      # Extract any src/ files
      jar -xf "${tmp_dir}/orig.jar" src/
      # Extract any org/ files under src/main/java
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 12 19:47:53 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top