reactivated 0.30.2-a1632 → 0.30.2-a1638

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactivated",
3
- "version": "0.30.2-a1632",
3
+ "version": "0.30.2-a1638",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",
@@ -1,12 +1,15 @@
1
1
  # This script is meant to be sourced, not run in a subshell.
2
- set -x
3
2
  SOURCE_DATE_EPOCH=$(date +%s)
4
3
  export SOURCE_DATE_EPOCH
5
4
  VIRTUAL_ENV=$PWD/.venv
6
5
  PATH=$VIRTUAL_ENV/bin:$PATH
7
6
  POSTGRESQL_DATA="$VIRTUAL_ENV/postgresql"
8
7
  POSTGRESQL_LOGS="$VIRTUAL_ENV/postgresql/logs.txt"
9
- TMP_ENV="$TMPDIR/reactivated/$(echo "$VIRTUAL_ENV" | md5sum | awk '{print $1}')"
8
+
9
+ # On MacOS, people may run this in /tmp which is actually /private/tmp.
10
+ # To prevent issues with the hash changing for $VIRTUAL_ENV depending on
11
+ # $PWD returning /tmp or /private/tmp, we resolve with readlink.
12
+ TMP_ENV="$TMPDIR/reactivated/$(readlink -f "$VIRTUAL_ENV" | md5sum | awk '{print $1}')"
10
13
 
11
14
  export PGPORT=1
12
15
  export PGDATABASE="database"