summaryrefslogtreecommitdiff
path: root/doc/forum/secret-project_deliverable/comment_11_9cbcee2364a499206d5329c5a88a1211._comment
blob: be3346e34f91a16c07b0a809118da99ebe754efa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[[!comment format=mdwn
 username="stappers@eb96885816da287c29f6f699999434d532149234"
 nickname="stappers"
 avatar="http://cdn.libravatar.org/avatar/bf33450acf6fc2a17a8b4e6fc7749c65"
 subject="two git repos and one /usr/local/propellor"
 date="2018-01-02T20:43:54Z"
 content="""
Perhaps I don't understand the secret-project and its special buid with stack.


I have a git repo in `~/.propellor` and I have a git repo in `~/src/secret-project`.


In the ~/secret-project directory

	$ propellor
	Pull from central git repository ... done
	Copying from /home/stappers/src/secret-project/.stack-work/install/x86_64-linux-nopie/lts-8.12/8.0.2/bin/propellor-config to /home/stappers/src/secret-project/.built/propellor-config
	
	Copied executables to /home/stappers/src/secret-project/.built:
	- propellor-config
	
	Warning: Installation path /home/stappers/src/secret-project/.built
	         not found on the PATH environment variable.
	Propellor build ... done
	[master fb46460] propellor spin
	Git commit ... done
	error: Cannot access URL https://git.joeyh.name/git/secret-project.git/, return code 22
	fatal: git-http-push failed
	error: failed to push some refs to 'https://git.joeyh.name/git/secret-project.git'
	Push to central git repository ... failed
	Pull from central git repository ... done
	** warning: git branch origin/master is not signed with a trusted gpg key; refusing to deploy it! (Running with previous configuration instead.)
	Sending privdata (11 bytes) to paddy.gpm.stappers.nl ... done
	remote: Counting objects: 6, done.        
	remote: Compressing objects: 100% (6/6), done.        
	remote: Total 6 (delta 4), reused 0 (delta 0)        
	Sending git update to paddy.gpm.stappers.nl ... done
	From .
	 * branch            HEAD       -> FETCH_HEAD
	fatal: refusing to merge unrelated histories
	** error: git merge from client failed
	propellor: Cannot continue!
	CallStack (from HasCallStack):
	  error, called at src/Propellor/Message.hs:143:9 in main:Propellor.Message
	propellor: user error (ssh [\"-o\",\"ControlPath=/home/stappers/.ssh/propellor/paddy.gpm.stappers.nl.sock\",
		\"-o\",\"ControlMaster=auto\",
		\"-o\",\"ControlPersist=yes\",
		\"root@paddy.gpm.stappers.nl\",
		\"sh -c 'if [ ! -d /usr/local/propellor/.git ] ;
			 then (if ! git --version >/dev/null 2>&1;
			 then apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends --no-upgrade -y install git;
			 fi && echo STATUSNeedGitClone) || echo STATUSNeedPrecompiled ;
			 else cd /usr/local/propellor && if ! stack build --dry-run >/dev/null 2>&1;
			 then ( apt-get update ;
			 DEBIAN_FRONTEND=noninteractive apt-get -qq --no-upgrade --no-install-recommends -y install gnupg ;
			 DEBIAN_FRONTEND=noninteractive apt-get -qq --no-upgrade --no-install-recommends -y install haskell-stack ;
			 stack setup ;
			 stack build --only-dependencies :propellor-config) || true;
			 fi&& if ! test -x ./propellor;
			 then stack build :propellor-config && ln -sf $(stack path --dist-dir)/build/propellor-config/propellor-config propellor;
			 fi;
			if test -x ./propellor && ! ./propellor --check;
			 then stack clean && stack build :propellor-config && ln -sf $(stack path --dist-dir)/build/propellor-config/propellor-config propellor;
			 fi && ./propellor --boot paddy.gpm.stappers.nl ;
			 fi'\"] exited 1)
	stappers@paddy:~/src/secret-project
	$


The `/usr/local/propellor/` has already a  .git directory from  ~/.propellor ...

"""]]