Commit Graph

5031 Commits

Author SHA1 Message Date
Qi Xiao
c96bfade21 pkg/parse: Small API tweak. 2021-02-01 14:20:56 +00:00
Qi Xiao
fab4e82ed1 Makefile: Remove -buildmode=pie from the go command. 2021-01-31 02:52:27 +00:00
Qi Xiao
f56f8a3083 PACKAGING.md: The guide applies to releases from 0.16.0, not 0.15.0 2021-01-31 02:32:04 +00:00
Qi Xiao
a407366060 Further restrict PIE to platforms that support it without requiring CGo. 2021-01-31 01:09:05 +00:00
Qi Xiao
be158bc0d3 Only build with -buildmode=pie on Linux on Windows.
Other platforms either don't support -buildmode=pie or require CGo.
2021-01-31 00:54:30 +00:00
Qi Xiao
72fc2dbe4a Copy and trim down the net/rpc package.
In particular, the dependency on net/http is removed, which removes a
bunch of transitive dependencies.
2021-01-30 23:56:58 +00:00
Qi Xiao
f52285eea2
Makefile: Avoid unportable "echo -n" 2021-01-30 21:53:22 +00:00
Qi Xiao
050863fbba Makefile: Pass CGO_ENABLED=0 in the "get" target. 2021-01-30 18:29:31 +00:00
Qi Xiao
ec68d73668 Require development builds to include the full commit hash. 2021-01-30 18:13:10 +00:00
Qi Xiao
061af54b0f Makefile: Only run go test with -race if cgo is enabled. 2021-01-30 12:13:02 +00:00
Qi Xiao
57ce226c65 Bump pkg/buildinfo.Version to 0.16.0 2021-01-30 11:31:52 +00:00
Qi Xiao
585509007e Update for 0.15.0 release.
* Rebrand NEXT-RELEASE.md to the release notes for 0.15.0, and publish it.

* Bump default deprecation level to 15.

* Add download links in website/get/prelude.md.
2021-01-30 11:26:39 +00:00
Qi Xiao
3715e5a739 New tagline: Expressive programming language + versatile interactive shell 2021-01-29 02:42:29 +00:00
Qi Xiao
57925dbee7 Run prettier on PACKAGING.md. 2021-01-29 01:26:36 +00:00
Qi Xiao
30489ffd28 tools/buildall.sh: Output usage information from its own comment.
When the number of arguments is not 3, the script now uses a complex sed command
to output the doc comment in its own code.
2021-01-29 01:26:06 +00:00
Qi Xiao
ea904e50fc
PACKAGING.md: Fix the value of VersionSuffix for dev build 2021-01-28 22:17:20 +00:00
Qi Xiao
3636e39179
Fix link in PACKAGING.md 2021-01-28 22:14:29 +00:00
Qi Xiao
29e949832c Add -buildinfo=pie to flags for reproducible builds. 2021-01-28 19:59:29 +00:00
Qi Xiao
e578826ad1 tools/cirrus-deploy.sh: Accomodate changes in buildall.sh. 2021-01-28 15:13:13 +00:00
Qi Xiao
3ab3b908ec tools/cirrus-deploy.sh: Fix the find command; the cirrus builder uses Busybox. 2021-01-28 15:01:13 +00:00
Qi Xiao
91bdaaf629 Change how version information is overriden.
The mechanism is now documented in PACKAGING.md.

Also refactor tools/buildall.sh to make it easy to make reproducible builds, and
fix tools/cirrus-deploy.sh.
2021-01-28 14:41:34 +00:00
Qi Xiao
1473fccceb Make website/ its own Go module.
This allows us to remove toml as a dependency of the src.elv.sh module since it
is only used in the website's building process.
2021-01-28 11:02:30 +00:00
Qi Xiao
1304dda2a1
README: Update Twitter handle 2021-01-27 23:54:14 +00:00
Qi Xiao
c18a888557
website: Update Twitter handle 2021-01-27 23:53:43 +00:00
Qi Xiao
a679c6817f website: Change the status of try elvish from "coming soon" to "beta" 2021-01-27 23:42:53 +00:00
Qi Xiao
e620433422 tools/buildall.sh: Allow using different version name in filename and buildinfo. 2021-01-27 22:10:38 +00:00
Qi Xiao
c4c4a74f51 tools/buildall.sh: support running from any directory, and support passing arguments. 2021-01-27 14:09:00 +00:00
Qi Xiao
88c5dade37 Remove tools/build-old-tag.sh as it's no longer used. 2021-01-27 14:08:33 +00:00
Qi Xiao
e4fa1cf452 Run gofmt -s on pkg/eval/closure.go. 2021-01-27 01:44:28 +00:00
Qi Xiao
22e4315eb1 Move the main package to cmd/elvish.
Now that the module path is "src.elv.sh", doing a "go get" will install the
Elvish binary as "src.elv.sh"; this is not what we want, so move the main
package into a package called "elvish".

Also update "go get" and "go build" commands accordingly.
2021-01-27 01:35:01 +00:00
Qi Xiao
196eea21d4 Change module import path to src.elv.sh 2021-01-27 01:30:25 +00:00
Qi Xiao
ad3a947b28 website: Fix typo in CSS 2021-01-27 01:02:44 +00:00
Qi Xiao
d3600ce358 website: Add canonical URL to the generated HTML files. 2021-01-27 00:03:12 +00:00
Qi Xiao
2dac04dbce Fix highlighting of command names with explicit builtin:. 2021-01-24 16:44:34 +00:00
Qi Xiao
ae98cc5272 Add a new "deprecate" command. 2021-01-24 15:32:24 +00:00
Qi Xiao
b87cc7b5de Add back support for circular module dependency.
This fixes #1226.
2021-01-24 14:10:45 +00:00
Qi Xiao
3bf95ec088 Fix the panic when referencing a module that calls edit:add-var.
This fixes #1225.
2021-01-21 01:05:33 +00:00
Qi Xiao
de562f84d4 Deprecate the $-exports- mechanism in 0.15. 2021-01-19 23:28:38 +00:00
Qi Xiao
37c3c0b0de Deprecate the use of "a=b" for non-temporary assignment in 0.15.
It is still the syntax for temporary assignment; only using it as a standalone
command is deprecated.
2021-01-19 23:28:34 +00:00
Qi Xiao
fbfbef8531 pkg/eval: Move implementation of compile-time deprecation to compiler.go. 2021-01-19 23:20:23 +00:00
Qi Xiao
47d9766f5c Control deprecation warnings with a number instead of a bool.
Previously, to avoid showing deprecation warnings for the next release when the
user is running on HEAD, a boolean CLI flag -show-deprecations is introduced,
and is set to false in the master branch. The idea is that release branches will
have this default to true, so people running released versions will see
deprecations.

However, this means that people running on HEAD will never see any deprecations
unless they use this CLI flag, which is not ideal. This commit replaces the flag
bool -show-deprecations with a numerical -deprecation-level flag, which requests
deprecations that are active as of release 0.X to be shown. The default value of
this flag will be the minor version number of the *last* release, so that people
running HEAD will see as many deprecation warnings as people running the last
release would. This number will be bumped just before releases.
2021-01-19 21:37:36 +00:00
Kurtis Rader
87519a9d9c Fix typo in description of path:is-regular 2021-01-17 04:56:59 +00:00
Qi Xiao
e6e6534fc9 Fix elvdoc for edit:add-vars. 2021-01-17 01:36:06 +00:00
Qi Xiao
d97c989219 Introduce edit:add-var and edit:add-vars.
This addresses #1138.
2021-01-17 01:33:25 +00:00
Qi Xiao
a16cd8dfa6 pkg/eval: Allow "var a:". 2021-01-17 01:17:35 +00:00
Qi Xiao
76c23aa7b0 pkg/edit: Fix formatting of some elvdoc. 2021-01-17 01:13:00 +00:00
Qi Xiao
a1cde7b77b pkg/fsutil: Fix claim_test.go for Windows. 2021-01-17 00:55:51 +00:00
Qi Xiao
629144195b pkg/eval: Fix handling of the global scope in (*Evaler).Eval.
- Do not mutate ev.global if cfg.Global is not nil. This fixes #1223.

- Handle concurrent mutations correctly. This addresses #1138.
2021-01-17 00:36:18 +00:00
Qi Xiao
327561ed0a pkg/daemon: Move the opening of stdin for the daemon to spawn.go. 2021-01-17 00:12:36 +00:00
Qi Xiao
f530a71afc pkg/fsutil: Add more tests for ClaimFile.
The test for concurrent calls uncovered a bug where concurrent calls could
return the same file; fix this by adding a O_EXCL flag.
2021-01-17 00:11:38 +00:00