A Lockfile
file locking the state of resolved dependencies generated by swiftpm.
Lockfile
file can be helpful in situations like :
{ | |
"cmd": ["swift", "build"], | |
"keyfiles": ["Package.swift"], | |
"variants": [ | |
{ | |
"name": "release", | |
"cmd": ["swift", "build", "-c", "release"] | |
}, | |
{ | |
"name": "test", |
import Foundation | |
struct StringCodingKey: CodingKey { | |
var stringValue: String | |
init(stringValue: String) { | |
self.stringValue = stringValue | |
} | |
var intValue: Int? { return nil } | |
init?(intValue: Int) { fatalError() } | |
} |
#! /usr/bin/env python | |
# Standard library imports. | |
from SocketServer import ThreadingMixIn | |
import BaseHTTPServer | |
import SimpleHTTPServer | |
import sys | |
import json | |
import os | |
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext, |
#!/bin/sh | |
set -e | |
NINJA_RELEASE_ASSERT_DIR="${HOME}/Documents/workspaces/xcode/github/apple/build/Ninja-ReleaseAssert" | |
SOURCE_ROOT="${HOME}/Documents/workspaces/xcode/github/apple" | |
echo "Updating sources (except SwiftPM)" | |
${SOURCE_ROOT}/swift/utils/update-checkout --skip-repository swiftpm | |
echo "Done updating sources" |
protocol DumbTerminalProtocol { | |
func write(_ string: String) | |
func endLine() | |
func flush() | |
} | |
protocol RichTerminalProtocol: DumbTerminalProtocol { | |
var width: Int { get } | |
func clearLine() | |
func moveCursor(y: Int) |
import json | |
import os | |
import pipes | |
import subprocess | |
import sys | |
import lit.Test | |
import lit.TestRunner | |
import lit.formats.base |
#!/bin/sh | |
set -e | |
if [ -z "${CONFIGURATION}" ]; then | |
CONFIGURATION=debug | |
fi | |
PLATFORM='unknown' | |
unamestr=`uname` |
client: | |
name: swift-build | |
tools: {} | |
targets: | |
test: [] | |
default: [<SeaExec.module>, <SeaLib.Foo>, <SeaLib.Bar>, <SeaExec.exe>, <SeaLib.module>] | |
commands: | |
/Users/aciid/mycode/swiftpmProjects/SwiftCMixed/.build/debug/SeaExec.build: | |
tool: mkdir | |
outputs: [/Users/aciid/mycode/swiftpmProjects/SwiftCMixed/.build/debug/SeaExec.build] |
$ pkgutil --expand swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx.pkg swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx | |
$ cd swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx | |
$ cd swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-osx-package.pkg | |
$ mv Payload Payload.zip | |
$ open . | |
double click to extract | |
$ cd Payload\ 2/usr/bin | |
$ ./swiftc -v | |
Apple Swift version 3.0-dev (LLVM b361b0fc05, Clang 11493b0f62, Swift 24a0c3de75) |